Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
src
Commits
331dd798
Commit
331dd798
authored
Jun 09, 2021
by
kraus
Browse files
throw an exception if the users tries to run a simulation with a periodic field solver
parent
b0ddbe1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/Structure/FieldSolver.cpp
src/Structure/FieldSolver.cpp
+4
-0
No files found.
src/Structure/FieldSolver.cpp
View file @
331dd798
...
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment