Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Source/Evolve/WarpXEvolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,8 @@ void WarpX::SyncCurrentAndRho ()
SyncCurrent(current_fp, current_cp);
SyncRho(rho_fp, rho_cp);
}
#endif // ifndef WARPX_DIM_RZ
#ifdef WARPX_MAG_LLG
#ifndef WARPX_DIM_RZ
// H and M are up-to-date in the domain, but all guard cells are
// outdated.
if ( safe_guard_cells ){
Expand All @@ -643,6 +644,8 @@ void WarpX::SyncCurrentAndRho ()
ApplyExternalFieldExcitationOnGrid(ExternalFieldType::HbiasfieldExternal); // apply H external excitation; soft source to be fixed

}
#endif // ifndef WARPX_DIM_RZ
#endif // WARPX_MAG_LLG
}
}
else // FDTD
Expand Down
14 changes: 0 additions & 14 deletions Source/FieldSolver/WarpXExternalEMFields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,6 @@ WarpX::ApplyExternalFieldExcitationOnGrid (int const externalfieldtype, DtType a
lev, a_dt_type );
}
}
if (externalfieldtype == ExternalFieldType::AllExternal || externalfieldtype == ExternalFieldType::HbiasfieldExternal) {
if (H_bias_excitation_grid_s == "parse_h_bias_excitation_grid_function") {
ApplyExternalFieldExcitationOnGrid(H_biasfield_fp[lev][0].get(),
H_biasfield_fp[lev][1].get(),
H_biasfield_fp[lev][2].get(),
Hx_biasfield_xt_grid_parser->compile<4>(),
Hy_biasfield_xt_grid_parser->compile<4>(),
Hz_biasfield_xt_grid_parser->compile<4>(),
Hx_biasfield_flag_parser->compile<3>(),
Hy_biasfield_flag_parser->compile<3>(),
Hz_biasfield_flag_parser->compile<3>(),
lev );
}
}
#endif
} // for loop over level
}
Expand Down
2 changes: 2 additions & 0 deletions Source/Initialization/WarpXInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,8 @@ WarpX::PostRestart ()
void
WarpX::InitLevelData (int lev, Real /*time*/)
{
using utils::parser::makeParser;
using utils::parser::Store_parserString;

ParmParse pp_warpx("warpx");

Expand Down
2 changes: 1 addition & 1 deletion Source/Utils/WarpXAlgorithmSelection.H
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ struct ExternalFieldType {
BfieldExternal = 2,
#ifdef WARPX_MAG_LLG
HfieldExternal = 3,
HbiasfieldExternal = 4
HbiasfieldExternal = 4,
#endif
EfieldExternalPML = 5
};
Expand Down
Loading