NorESMhub / CAM

Community Atmosphere Model including CAM6-Nor branches
1 stars 20 forks source link

Bug in HetFrz code #109

Closed gold2718 closed 7 months ago

gold2718 commented 7 months ago

What happened?

Changing the number of tasks changed answers in routine testing (e.g., ERP tests). This is usually an indication of a coding bug.

What are the steps to reproduce the bug?

Run any NorESM case which uses Oslo Aero.

What CAM-Nor tag were you using?

cam_cesm2_1_rel_05-Nor_v1.0.5

What machine were you running CAM (or NorESM) on?

Betzy

What compiler were you using?

Intel

Path to a case directory, if applicable

No response

Will you be addressing this bug yourself?

Yes

Extra info

There is an incorrect array reference in a call to calculateNumberConcentration

call calculateNumberConcentration(ncol, aer_cb, rho, CloudnumberConcentration)

should be

call calculateNumberConcentration(ncol, aer_cb(:,:,:,lchnk), rho, CloudnumberConcentration)
gold2718 commented 7 months ago

Fixed in #116