Skip to content

Commit 0c70fcc

Browse files
authored
Merge branch 'development' into fix_par2mesh_w_terrain
2 parents b606ce9 + 5b8c033 commit 0c70fcc

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/cuda-ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ jobs:
2121
name: CUDA v${{matrix.cuda_ver}} - Particles ${{matrix.particles}}
2222
strategy:
2323
matrix:
24-
cuda_pkg: [12-0]
24+
cuda_pkg: [12-2]
2525
particles: [OFF, ON]
2626
include:
27-
- cuda_ver: "12.0"
28-
cuda_pkg: 12-0
29-
- cuda_arch: "8.0"
30-
cuda_pkg: 12-0
27+
- cuda_ver: "12.2"
28+
cuda_pkg: 12-2
29+
cuda_arch: "8.0"
3130
steps:
3231
- name: Cancel previous runs
3332
uses: styfle/cancel-workflow-action@0.6.0

Source/IO/ERF_Plotfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ ERF::WriteMultiLevelPlotfileWithTerrain (const std::string& plotfilename, int nl
18001800
boxArrays[level] = mf[level]->boxArray();
18011801
}
18021802

1803-
auto f = [=]() {
1803+
auto f = [=,this]() {
18041804
VisMF::IO_Buffer io_buffer(VisMF::IO_Buffer_Size);
18051805
std::string HeaderFileName(plotfilename + "/Header");
18061806
std::ofstream HeaderFile;

Source/Particles/ERFPCUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void ERFPC::ExtractAndRouteOORParticles ( int
363363
{
364364
auto& p = p_pbox[i];
365365
if (p.id() <= 0) { mask_ptr[i] = 0; return; }
366-
int grd = src_lev_grid(p, 0, cell_assignor);
366+
int grd = src_lev_grid(p, 0, cell_assignor).first;
367367
mask_ptr[i] = (grd < 0) ? 1 : 0;
368368
});
369369

@@ -404,7 +404,7 @@ void ERFPC::ExtractAndRouteOORParticles ( int
404404
lg.k_max, zlevels, nz_lev0,
405405
lg.ref_ratio );
406406
p.idata(ERFParticlesIntIdxAoS::k) = k;
407-
int grd = ag_ptr[tl](p, 0, cell_assignor);
407+
int grd = ag_ptr[tl](p, 0, cell_assignor).first;
408408
if (grd >= 0) { found_lev = tl; break; }
409409
}
410410
tgt_ptr[i] = found_lev;

0 commit comments

Comments
 (0)