@@ -383,6 +383,22 @@ WarpX::ReadParameters ()
383383 pp.query (" pml_ncell" , pml_ncell);
384384 pp.query (" pml_delta" , pml_delta);
385385
386+ Vector<int > parse_do_pml_Lo (AMREX_SPACEDIM,1 );
387+ pp.queryarr (" do_pml_Lo" , parse_do_pml_Lo);
388+ do_pml_Lo[0 ] = parse_do_pml_Lo[0 ];
389+ do_pml_Lo[1 ] = parse_do_pml_Lo[1 ];
390+ #if (AMREX_SPACEDIM == 3)
391+ do_pml_Lo[2 ] = parse_do_pml_Lo[2 ];
392+ #endif
393+ Vector<int > parse_do_pml_Hi (AMREX_SPACEDIM,1 );
394+ pp.queryarr (" do_pml_Hi" , parse_do_pml_Hi);
395+ do_pml_Hi[0 ] = parse_do_pml_Hi[0 ];
396+ do_pml_Hi[1 ] = parse_do_pml_Hi[1 ];
397+ #if (AMREX_SPACEDIM == 3)
398+ do_pml_Hi[2 ] = parse_do_pml_Hi[2 ];
399+ #endif
400+
401+
386402 pp.query (" dump_openpmd" , dump_openpmd);
387403 pp.query (" dump_plotfiles" , dump_plotfiles);
388404 pp.query (" plot_raw_fields" , plot_raw_fields);
@@ -393,7 +409,7 @@ WarpX::ReadParameters ()
393409 if (not user_fields_to_plot){
394410 // If not specified, set default values
395411 fields_to_plot = {" Ex" , " Ey" , " Ez" , " Bx" , " By" ,
396- " Bz" , " jx" , " jy" , " jz" ,
412+ " Bz" , " jx" , " jy" , " jz" ,
397413 " part_per_cell" };
398414 }
399415 // set plot_rho to true of the users requests it, so that
@@ -411,9 +427,9 @@ WarpX::ReadParameters ()
411427 // If user requests to plot proc_number for a serial run,
412428 // delete proc_number from fields_to_plot
413429 if (ParallelDescriptor::NProcs () == 1 ){
414- fields_to_plot.erase (std::remove (fields_to_plot.begin (),
415- fields_to_plot.end (),
416- " proc_number" ),
430+ fields_to_plot.erase (std::remove (fields_to_plot.begin (),
431+ fields_to_plot.end (),
432+ " proc_number" ),
417433 fields_to_plot.end ());
418434 }
419435
@@ -497,7 +513,7 @@ WarpX::ReadParameters ()
497513 {
498514 ParmParse pp (" algo" );
499515 // If not in RZ mode, read use_picsar_deposition
500- // In RZ mode, use_picsar_deposition is on, as the C++ version
516+ // In RZ mode, use_picsar_deposition is on, as the C++ version
501517 // of the deposition does not support RZ
502518 pp.query (" use_picsar_deposition" , use_picsar_deposition);
503519 current_deposition_algo = GetAlgorithmInteger (pp, " current_deposition" );
0 commit comments