error in input script results in obscure crash
The attached script was posted by one of our users on the Yahoo site.
Both with c08.01 and c10.00 this script very quickly fails due to a failed assert. The reason is that the user includes both a "dlaw table depth" command and a "constant density" command.
PROBLEM DISASTER
An assert has been thrown, this is bad.
Failed: fabs( dense.gas_phase[ipHYDROGEN] - dense.den0 )/ dense.gas_phase[ipHYDROGEN]<1e-4
It happened in the file mole_h_drive.cpp at line number 228
This is iteration 1, nzone 0, fzone 0.00, lgSearch=T.
It is clear that the user made an error, but the failure mode is very unhelpful. Can we change the parser such that it would detect this inappropriate combination of commands, and possibly other incompatible commands? Simply checking for the combination of commands listed above seems fragile. Can we come up with a better solution?