CMAQ-5.3.1 multiple day run error

Hi everyone,
i am using CMAQ-5.3.1 with HGBIDI oprion on. But the model can only run for one day and the following error popped up:


allocatable array is already allocated. I checked the 99 line of BIDI_MOD.F:
Allocate( MEDIA_NAMES( HG_TOT ), MEDIA_UNITS( N_TOT ), MEDIA_DESCR( N_TOT ) )
There are no error in the log files. The error message apprears on the screen with the DEBUG mode on. The model runs smoothly for the first day. This error happens when the second day starts. Could you help to fix this error. If i add Deallocate at the end of the file, will that work.
Thanks!!
Lin

The error happens when the meucury bidirectional option is turned on.
The problem is solved by using CMAQ-5.3.2 and editing BIDI_MOD.F with @jbash’s help. Three new lines showed below were added:

  1. add the following line after line 73 (new line 74):
     LOGICAL,  SAVE  :: INITIALIZED = .FALSE.
  1. add new line 77-79:
     If ( INITIALIZED ) Return

        INITIALIZED = .True.

For my case, this change works for CMAQ-5.3.2 but not for CMAQ-5.3.1. So i updated and use CMAQ-5.3.2 instead.

1 Like