@@ -756,7 +756,7 @@ WarpX::FillBoundaryE (const int lev, const PatchType patch_type, const amrex::In
756
756
ng.allLE (mf[i]->nGrowVect ()),
757
757
" Error: in FillBoundaryE, requested more guard cells than allocated" );
758
758
759
- const amrex::IntVect nghost = (safe_guard_cells ) ? mf[i]->nGrowVect () : ng;
759
+ const amrex::IntVect nghost = (m_safe_guard_cells ) ? mf[i]->nGrowVect () : ng;
760
760
ablastr::utils::communication::FillBoundary (*mf[i], nghost, WarpX::do_single_precision_comms, period, nodal_sync);
761
761
}
762
762
}
@@ -821,7 +821,7 @@ WarpX::FillBoundaryB (const int lev, const PatchType patch_type, const amrex::In
821
821
ng.allLE (mf[i]->nGrowVect ()),
822
822
" Error: in FillBoundaryB, requested more guard cells than allocated" );
823
823
824
- const amrex::IntVect nghost = (safe_guard_cells ) ? mf[i]->nGrowVect () : ng;
824
+ const amrex::IntVect nghost = (m_safe_guard_cells ) ? mf[i]->nGrowVect () : ng;
825
825
ablastr::utils::communication::FillBoundary (*mf[i], nghost, WarpX::do_single_precision_comms, period, nodal_sync);
826
826
}
827
827
}
@@ -846,7 +846,7 @@ WarpX::FillBoundaryE_avg (int lev, PatchType patch_type, IntVect ng)
846
846
ablastr::fields::MultiLevelVectorField Efield_avg_fp = m_fields.get_mr_levels_alldirs (FieldType::Efield_avg_fp, finest_level);
847
847
848
848
const amrex::Periodicity& period = Geom (lev).periodicity ();
849
- if ( safe_guard_cells ){
849
+ if ( m_safe_guard_cells ){
850
850
const Vector<MultiFab*> mf{Efield_avg_fp[lev][0 ],Efield_avg_fp[lev][1 ],Efield_avg_fp[lev][2 ]};
851
851
ablastr::utils::communication::FillBoundary (mf, WarpX::do_single_precision_comms, period);
852
852
} else {
@@ -868,7 +868,7 @@ WarpX::FillBoundaryE_avg (int lev, PatchType patch_type, IntVect ng)
868
868
ablastr::fields::MultiLevelVectorField Efield_avg_cp = m_fields.get_mr_levels_alldirs (FieldType::Efield_avg_cp, finest_level);
869
869
870
870
const amrex::Periodicity& cperiod = Geom (lev-1 ).periodicity ();
871
- if ( safe_guard_cells ) {
871
+ if ( m_safe_guard_cells ) {
872
872
const Vector<MultiFab*> mf{Efield_avg_cp[lev][0 ],Efield_avg_cp[lev][1 ],Efield_avg_cp[lev][2 ]};
873
873
ablastr::utils::communication::FillBoundary (mf, WarpX::do_single_precision_comms, cperiod);
874
874
@@ -906,7 +906,7 @@ WarpX::FillBoundaryB_avg (int lev, PatchType patch_type, IntVect ng)
906
906
ablastr::fields::MultiLevelVectorField Bfield_avg_fp = m_fields.get_mr_levels_alldirs (FieldType::Bfield_avg_fp, finest_level);
907
907
908
908
const amrex::Periodicity& period = Geom (lev).periodicity ();
909
- if ( safe_guard_cells ) {
909
+ if ( m_safe_guard_cells ) {
910
910
const Vector<MultiFab*> mf{Bfield_avg_fp[lev][0 ],Bfield_avg_fp[lev][1 ],Bfield_avg_fp[lev][2 ]};
911
911
ablastr::utils::communication::FillBoundary (mf, WarpX::do_single_precision_comms, period);
912
912
} else {
@@ -928,7 +928,7 @@ WarpX::FillBoundaryB_avg (int lev, PatchType patch_type, IntVect ng)
928
928
ablastr::fields::MultiLevelVectorField Bfield_avg_cp = m_fields.get_mr_levels_alldirs (FieldType::Bfield_avg_cp, finest_level);
929
929
930
930
const amrex::Periodicity& cperiod = Geom (lev-1 ).periodicity ();
931
- if ( safe_guard_cells ){
931
+ if ( m_safe_guard_cells ){
932
932
const Vector<MultiFab*> mf{Bfield_avg_cp[lev][0 ],Bfield_avg_cp[lev][1 ],Bfield_avg_cp[lev][2 ]};
933
933
ablastr::utils::communication::FillBoundary (mf, WarpX::do_single_precision_comms, cperiod);
934
934
} else {
@@ -967,7 +967,7 @@ WarpX::FillBoundaryF (int lev, PatchType patch_type, IntVect ng, std::optional<b
967
967
if (m_fields.has (FieldType::F_fp, lev))
968
968
{
969
969
const amrex::Periodicity& period = Geom (lev).periodicity ();
970
- const amrex::IntVect& nghost = (safe_guard_cells ) ? m_fields.get (FieldType::F_fp, lev)->nGrowVect () : ng;
970
+ const amrex::IntVect& nghost = (m_safe_guard_cells ) ? m_fields.get (FieldType::F_fp, lev)->nGrowVect () : ng;
971
971
ablastr::utils::communication::FillBoundary (*m_fields.get (FieldType::F_fp, lev), nghost, WarpX::do_single_precision_comms, period, nodal_sync);
972
972
}
973
973
}
@@ -986,7 +986,7 @@ WarpX::FillBoundaryF (int lev, PatchType patch_type, IntVect ng, std::optional<b
986
986
if (m_fields.has (FieldType::F_cp, lev))
987
987
{
988
988
const amrex::Periodicity& period = Geom (lev-1 ).periodicity ();
989
- const amrex::IntVect& nghost = (safe_guard_cells ) ? m_fields.get (FieldType::F_cp, lev)->nGrowVect () : ng;
989
+ const amrex::IntVect& nghost = (m_safe_guard_cells ) ? m_fields.get (FieldType::F_cp, lev)->nGrowVect () : ng;
990
990
ablastr::utils::communication::FillBoundary (*m_fields.get (FieldType::F_cp, lev), nghost, WarpX::do_single_precision_comms, period, nodal_sync);
991
991
}
992
992
}
@@ -1020,7 +1020,7 @@ void WarpX::FillBoundaryG (int lev, PatchType patch_type, IntVect ng, std::optio
1020
1020
{
1021
1021
const amrex::Periodicity& period = Geom (lev).periodicity ();
1022
1022
MultiFab* G_fp = m_fields.get (FieldType::G_fp,lev);
1023
- const amrex::IntVect& nghost = (safe_guard_cells ) ? G_fp->nGrowVect () : ng;
1023
+ const amrex::IntVect& nghost = (m_safe_guard_cells ) ? G_fp->nGrowVect () : ng;
1024
1024
ablastr::utils::communication::FillBoundary (*G_fp, nghost, WarpX::do_single_precision_comms, period, nodal_sync);
1025
1025
}
1026
1026
}
@@ -1040,7 +1040,7 @@ void WarpX::FillBoundaryG (int lev, PatchType patch_type, IntVect ng, std::optio
1040
1040
{
1041
1041
const amrex::Periodicity& period = Geom (lev-1 ).periodicity ();
1042
1042
MultiFab* G_cp = m_fields.get (FieldType::G_cp,lev);
1043
- const amrex::IntVect& nghost = (safe_guard_cells ) ? G_cp->nGrowVect () : ng;
1043
+ const amrex::IntVect& nghost = (m_safe_guard_cells ) ? G_cp->nGrowVect () : ng;
1044
1044
ablastr::utils::communication::FillBoundary (*G_cp, nghost, WarpX::do_single_precision_comms, period, nodal_sync);
1045
1045
}
1046
1046
}
0 commit comments