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

BUGFIX: mistake in read_par_json concerning option VELOCITY

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