Skip to content

MOSAIC seems to have 1 bug in modal_aero_amicphys.F90 #1444

@xnnzka

Description

@xnnzka

What happened?

Recently I have to use CAM-Chem and MOSAIC to simulate NH3 related chemicals. I follow https://wiki.ucar.edu/spaces/camchem/pages/562823413/Use+MOSAIC+scheme+in+CESM+CAM-chem to download MOSAIC source codes zz_cam6_3_018_mosaic0.3. But I meet an error in building case:
5635 | if ( mwaer_from_advmass ) then
| 1
Error: IF clause at (1) requires a scalar LOGICAL expression

I review the source codes in modal_aero_amicphys.F90 and find in line 93: integer, public :: mwaer_from_advmass = .false. .
I modify integer to logical and the case could build and run successfully.

What are the steps to reproduce the bug?

  1. git clone https://github.com/ESCOMP/CAM -b zz_cam6_3_018_mosaic0.3 MOSAIC_CODE
  2. rename CESM2.2.2/components/cam to CESM2.2.2/components/cam_origin and then copy mosaic_code to CESM2.2.2/components/ and rename cam
  3. setup a FCHIST case and build
    (I knew that mosaic in FHIST compset will not work. Because FCnudged needs to download so much data from MERRA2 so I use FCHIST to test.)

What CAM tag were you using?

CAM in CESM2.2.2

What machine were you running CAM on?

Other (please explain below)

What compiler were you using?

GNU

Path to a case directory, if applicable

No response

Will you be addressing this bug yourself?

Yes

Extra info

I use the cluster of my university (https://qingli411.github.io/eesrf-hpc-user-guide/hpc1/environment.html).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions