Hi,

I'm trying to debug a problem with the model. I modified the FCM config files to add the array bound checking but now I get a strange message about subscripts with values -999999 which don't look like random values to me, and might be coming from the model.

Is there a way to run OpenIFS with array bound checking enabled?

Thanks, R.

4 Comments

  1. hi Ryan,

    If you want to enable bound checking you need to make a change to the namelist variable: NUNDEFLD in  namelist NAMDIM and defined in module/yomdimf.F90. This is set to -999999 by default in setup/sudim1.F90. It's used to set the index value for unused arrays or undefined arrays (IFS passes these types of arrays to subroutines). But it causes a problem when array bound checking is turned on, so change NUNDEFLD=1 (no need to recompile) and it should be ok.

    Best regards,  Glenn


  2. Great, thanks. I will give it a try and get back to you if I still have problems.

  3. It's worth noting this default index value is done deliberately so that use of undefined arrays can be trapped in the model code.

    Glenn

  4. In OpenIFS 43r3, NUNDEFLD has moved to namelist NAMCT0.