NorESMhub / BLOM

Bergen Layered Ocean Model
GNU Lesser General Public License v3.0
16 stars 25 forks source link

work around compile-time error in iHAMOCC when debug mode is activated #256

Closed JorgSchwinger closed 1 year ago

JorgSchwinger commented 1 year ago

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.