variable in CICE being used before being set

The Cray compiler (at least) noted that maxWork is used before being initialized in create_distrb_rake (in ice_distribution.F90). Looking at the code, this does appear to be a real error (in the branch (numOcnBlocks
 

jedwards

CSEG and Liaisons
Staff member
Hi Pat,
It looks like the solution is to move the the linemaxWork = maxval(workPerBlock) from line 1623 to line 1583.
 
Back
Top