Commit ac564950 authored by laura.gassner's avatar laura.gassner

BUGFIX: mistake in read_par_json concerning option VELOCITY

parent 96f22a36
...@@ -177,6 +177,7 @@ ...@@ -177,6 +177,7 @@
"ORDER" : "2", "ORDER" : "2",
"ZERO_PHASE" : "0", "ZERO_PHASE" : "0",
"FREQ_FILE" : "frequencies.dat", "FREQ_FILE" : "frequencies.dat",
"WRITE_FILTERED_DATA" : "0",
"Minimum number of iteration per frequency" : "comment", "Minimum number of iteration per frequency" : "comment",
"MIN_ITER" : "0", "MIN_ITER" : "0",
......
...@@ -479,7 +479,7 @@ void read_par_json(FILE *fp, char *fileinp){ ...@@ -479,7 +479,7 @@ void read_par_json(FILE *fp, char *fileinp){
VELOCITY=0; VELOCITY=0;
fprintf(fp,"Variable VELOCITY is set to default value %d.\n",VELOCITY); fprintf(fp,"Variable VELOCITY is set to default value %d.\n",VELOCITY);
}else }else
if(ACOUSTIC) if(ACOUSTIC && VELOCITY==1)
err("For acoustic inversion option VELOCITY not available"); err("For acoustic inversion option VELOCITY not available");
if (get_int_from_objectlist("USE_WORKFLOW",number_readobjects,&USE_WORKFLOW,varname_list, value_list)){ if (get_int_from_objectlist("USE_WORKFLOW",number_readobjects,&USE_WORKFLOW,varname_list, value_list)){
......
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