In .ffea input file, if num_rods does not match the number of <rod> blocks provided, an ineffective error message is raised.
Issue #75
new
Example simulation provided that replicates the bug. Run with ./run.sh
, assuming FFEA is installed.
If the num_rods
parameter is not equal to the number of <rod>
blocks provided within the same .ffea
input file, it raises the following unhelpful error after some loading:
IO error. Does input file exist? ffea: /home/ryan/Software/FFEA/ffea/src/rod_structure.cpp:684: rod::Rod rod::Rod::load_header(std::string): Assertion `length_set == true && "Length of the rod from file has not been set. File may be missing or formatted incorrectly."' failed.
Why does num_rods
need to be set? Why can't it just count the number of <rod>
blocks?