Commit 54b23ffd authored by Johannes Blaschke's avatar Johannes Blaschke
Browse files

add failure condition to check_config():

y-boundaries must be enabled before z-boundaries can be used
parent 23790692
......@@ -16,5 +16,8 @@
"**/node_modules/**": true,
"**/build/**": true
},
"projectManager.showProjectNameInStatusBar": true
"projectManager.showProjectNameInStatusBar": true,
"files.associations": {
"atomic": "cpp"
}
}
\ No newline at end of file
......@@ -147,6 +147,14 @@ check_config()
fprintf(stdout, "config.boundaries[2] = %d != [0,1]\n", config.boundaries[2]);
return 1;
}
// placing wall vparticles globally (faster than cell-based placement) requires y bdy for z bdy
if((config.boundaries[2] > 0) && (config.boundaries[1] == 0)){
fprintf(stdout, "!!!ERROR: cannot enable z-boundaries without y-boundaries: \n");
fprintf(stdout, "rotate you system by 90 degrees and use y-bdy instead!\n");
return 1;
}
if(config.angular < 0 || config.angular > 1){
fprintf(stdout, " * ATTN: int check_config() failure condition: \n");
fprintf(stdout, "config.angular = %d != [0,1]\n", config.angular);
......@@ -622,13 +630,10 @@ load_config(char * simnumber)
// ***** SPECIAL parameter relationships ******************
// squirmers must be fixed in place if trypanosome is on
if(config.trypanosome_on)
{
if(config.trypanosome_on){
config.without_squirmer_stream = 1;
config.use_time_driven_md = 1; //TODO: Not necessary
}
else
{
} else {
config.use_time_driven_md = 0;
}
......
This diff is collapsed.
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