Skip to content
Snippets Groups Projects
Commit 6d6faabe authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Addresses #53

Now crashed when wrong keywords are used in COORDINATION SWITCH=...
parent 58b1058e
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,10 @@ CoordinationBase(ao)
string sw,errors;
parse("SWITCH",sw);
if(sw.length()>0) switchingFunction.set(sw,errors);
else {
if(sw.length()>0){
switchingFunction.set(sw,errors);
if( errors.length()!=0 ) error("problem reading SWITCH keyword : " + errors );
} else {
int nn=6;
int mm=12;
double d0=0.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment