Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aerosol-only mode using Sulfate_mod to calculate a new SO2 specie #2480

Closed
CraigYEUNG opened this issue Sep 26, 2024 · 2 comments
Closed

Aerosol-only mode using Sulfate_mod to calculate a new SO2 specie #2480

CraigYEUNG opened this issue Sep 26, 2024 · 2 comments
Labels
category: Bug Something isn't working

Comments

@CraigYEUNG
Copy link

Your name

Craig YEUNG

Your affiliation

POLYU

What happened? What did you expect to happen?

I add a new specie as same as SO2, called SO2a into aerosol-only simulation, calculated by sulfate_mod.F90
I only add :
SO2a0 = Spc(id_SO2a)%Conc(I,J,L)
SO2as=SO2a0
Spc(id_SO2a)%Conc(I,J,L) = SO2as

it should be low concentration but
concentration of SO2a is very high and unreasonable distribution!

What are the steps to reproduce the bug?

cd to Headers/state_chm_mod.F90
change
State_Chm%Do_SulfateMod_Cld = .TRUE.
State_Chm%Do_SulfateMod_SeaSalt = .TRUE.

cd to sulfate_mod
add
SO2a0 = Spc(id_SO2a)%Conc(I,J,L)
below
SO20 = Spc(id_SO2)%Conc(I,J,L)

add
Spc(id_SO2a)%Conc(I,J,L) = SO2a0
below
Spc(id_SO2)%Conc(I,J,L) = SO2s(I,J,L)

and add id_SO2a to line 191, and add SO2a0 to line 2466 in sulfate_mod.F90
add SO2a with same information as SO2 into species_database.yml
add SO2a in transport_species in geoschem_config.yml

after simulation for 1day or 1 month,
concentration of SO2a is very high and unreasonable distribution!

Please attach any relevant configuration and log files.

截屏2024-09-26 19 44 16

What GEOS-Chem version were you using?

14.2.2

What environment were you running GEOS-Chem on?

Local cluster

What compiler and version were you using?

gcc

Will you be addressing this bug yourself?

Yes

In what configuration were you running GEOS-Chem?

GCClassic

What simulation were you running?

Aerosol

As what resolution were you running GEOS-Chem?

4x5

What meterology fields did you use?

GEOS-FP

Additional information

No response

@CraigYEUNG CraigYEUNG added the category: Bug Something isn't working label Sep 26, 2024
@msulprizio
Copy link
Contributor

Hi @CraigYEUNG. Unfortunately, the GCST does not have the resources to debug customized code. Instead I would refer you to our debugging pages. In particular these sections may be of use to you:

@CraigYEUNG
Copy link
Author

I think this problem is due to calculation storage, since its result is unreasonable.
Finally I found that I miss to add SO2a to
!$OMP PRIVATE( SO2, SO2a )&

after adding it to !$OMP PRIVATE, problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants