mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Switch from surf_num to surf_id
This commit is contained in:
parent
dd82da692a
commit
3be475836b
4 changed files with 4 additions and 4 deletions
|
|
@ -172,7 +172,7 @@ public:
|
|||
double E;
|
||||
double wgt;
|
||||
int delayed_group;
|
||||
int surf_num;
|
||||
int surf_id;
|
||||
Type particle;
|
||||
int64_t parent_id;
|
||||
int64_t progeny_id;
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ void initialize_mpi(MPI_Comm intracomm)
|
|||
MPI_Get_address(&b.E, &disp[2]);
|
||||
MPI_Get_address(&b.wgt, &disp[3]);
|
||||
MPI_Get_address(&b.delayed_group, &disp[4]);
|
||||
MPI_Get_address(&b.surf_num, &disp[5]);
|
||||
MPI_Get_address(&b.surf_id, &disp[5]);
|
||||
MPI_Get_address(&b.particle, &disp[6]);
|
||||
MPI_Get_address(&b.parent_id, &disp[7]);
|
||||
MPI_Get_address(&b.progeny_id, &disp[8]);
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ Particle::cross_surface()
|
|||
site.E = this->E_;
|
||||
site.wgt = this->wgt_;
|
||||
site.delayed_group = this->delayed_group_;
|
||||
site.surf_num = surf->id_;
|
||||
site.surf_id = surf->id_;
|
||||
site.particle = this->type_;
|
||||
site.parent_id = this->id_;
|
||||
site.progeny_id = this->n_progeny_;
|
||||
|
|
|
|||
|
|
@ -518,7 +518,7 @@ hid_t h5banktype() {
|
|||
H5Tinsert(banktype, "E", HOFFSET(Particle::Bank, E), H5T_NATIVE_DOUBLE);
|
||||
H5Tinsert(banktype, "wgt", HOFFSET(Particle::Bank, wgt), H5T_NATIVE_DOUBLE);
|
||||
H5Tinsert(banktype, "delayed_group", HOFFSET(Particle::Bank, delayed_group), H5T_NATIVE_INT);
|
||||
H5Tinsert(banktype, "surf_num", HOFFSET(Particle::Bank, surf_num), H5T_NATIVE_INT);
|
||||
H5Tinsert(banktype, "surf_id", HOFFSET(Particle::Bank, surf_id), H5T_NATIVE_INT);
|
||||
H5Tinsert(banktype, "particle", HOFFSET(Particle::Bank, particle), H5T_NATIVE_INT);
|
||||
|
||||
H5Tclose(postype);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue