Skip to content

Commit

Permalink
Write runtime attribs to checkpoints on GPUs (AMReX-Codes#2856)
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Jun 28, 2022
1 parent d2cb546 commit 2c5f475
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Src/Particle/AMReX_WriteBinaryParticleData.H
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,26 @@ packIOData (Vector<int>& idata, Vector<ParticleReal>& rdata, const PC& pc, int l
}
}

for (int j = 0; j < ptd.m_num_runtime_int; j++) {
if (write_int_comp_d_ptr[PC::SuperParticleType::NInt + j]) {
idata_d_ptr[iout_index] = ptd.m_runtime_idata[j][pindex];
iout_index++;
}
}

for (int j = 0; j < PC::SuperParticleType::NReal; j++) {
if (write_real_comp_d_ptr[j]) {
rdata_d_ptr[rout_index] = p.rdata(j);
rout_index++;
}
}

for (int j = 0; j < ptd.m_num_runtime_real; j++) {
if (write_real_comp_d_ptr[PC::SuperParticleType::NReal + j]) {
rdata_d_ptr[rout_index] = ptd.m_runtime_rdata[j][pindex];
rout_index++;
}
}
}
});

Expand Down

0 comments on commit 2c5f475

Please sign in to comment.