In debug mode the intel compiler generates an error in mo_param1 (see #254 by @mvertens). Apparently, since indices are defined as parameters, the compile-time array bounds check generate errors for actually unused indices even though the code cannot be reached. Since the intel compiler is our workhorse I suggest to fix this by using pre-processor directives instead of if-statements.
In debug mode the intel compiler generates an error in mo_param1 (see #254 by @mvertens). Apparently, since indices are defined as parameters, the compile-time array bounds check generate errors for actually unused indices even though the code cannot be reached. Since the intel compiler is our workhorse I suggest to fix this by using pre-processor directives instead of if-statements.