Skip to content

Commit 9aac67c

Browse files
author
ablelly
committed
Improved comments
1 parent 1d57013 commit 9aac67c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Initialization/WarpXInitData.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,9 @@ WarpX::InitPML ()
132132
if (do_pml)
133133
{
134134
amrex::IntVect do_pml_Lo_corrected = do_pml_Lo;
135-
// amrex::IntVect do_pml_Hi_corrected = do_pml_Hi;
136135

137136
#ifdef WARPX_DIM_RZ
138-
do_pml_Lo_corrected[0] = 0; //no PML along z-axis
137+
do_pml_Lo_corrected[0] = 0; // no PML at r=0, in cylindrical geometry
139138
#endif
140139
pml[0].reset(new PML(boxArray(0), DistributionMap(0), &Geom(0), nullptr,
141140
pml_ncell, pml_delta, 0,
@@ -148,7 +147,8 @@ WarpX::InitPML ()
148147
{
149148
amrex::IntVect do_pml_Lo_MR = amrex::IntVect::TheUnitVector();
150149
#ifdef WARPX_DIM_RZ
151-
if ((max_level > 0) && (fine_tag_lo[0]==0.)) { //if the border of the patch matches with the z-axis
150+
//In cylindrical geometry, if the edge of the patch is at r=0, do not add PML
151+
if ((max_level > 0) && (fine_tag_lo[0]==0.)) {
152152
do_pml_Lo_MR[0] = 0;
153153
}
154154
#endif

0 commit comments

Comments
 (0)