Commit 331dd798 authored by kraus's avatar kraus
Browse files

throw an exception if the users tries to run a simulation with a periodic field solver

parent b0ddbe1b
......@@ -462,6 +462,10 @@ void FieldSolver::initSolver(PartBunchBase<double, 3> *b) {
bcz = Attributes::getString(itsAttr[BCFFTZ]);
}
if (bcz == "PERIODIC" || bcx == "PERIODIC" || bcy == "PERIODIC") {
throw OpalException("FieldSolver::init", "Periodic boundaries aren't supported at the moment");
}
if ( isAmrSolverType() ) {
Inform m("FieldSolver::initAmrSolver");
fsType_m = "AMR";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment