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

Layer development #24

Merged
merged 94 commits into from
Jul 12, 2024
Merged

Layer development #24

merged 94 commits into from
Jul 12, 2024

Conversation

jtgasparik
Copy link
Collaborator

Added layers to aerosol particles in single particle representation

Copy link
Collaborator

@mattldawson mattldawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! just a few comments about removing things

CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
src/aero_rep_factory.F90 Outdated Show resolved Hide resolved
src/aero_reps/aero_rep_single_particle_no_layers.c Outdated Show resolved Hide resolved
src/aero_reps/layer_aero_rep_array_test.F90 Outdated Show resolved Hide resolved
src/aero_reps/layer_state_id_array_test.F90 Outdated Show resolved Hide resolved
src/aero_reps/num_phase_array_test.F90 Outdated Show resolved Hide resolved
Copy link
Collaborator

@mattldawson mattldawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great!

Copy link
Collaborator

@mattldawson mattldawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@@ -1,5 +1,6 @@
{
"camp-files" : [
"test_aqueous_equilibrium.json"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove added line.

@@ -257,7 +257,7 @@ subroutine initialize(this, chem_spec_data, aero_rep, n_cells)

! Get the number of Jacobian elements for calculations of mass, volume,
! number, etc. for this partitioning into this phase
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name)
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name, is_at_surface=.true.)

@@ -316,7 +316,7 @@ subroutine initialize(this, chem_spec_data, aero_rep, n_cells)
phase_name = phase_name, spec_name = water_name)

! Get the phase ids for this aerosol phase
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name)
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name, is_at_surface=.true.)

@@ -255,7 +255,7 @@ subroutine initialize(this, chem_spec_data, aero_rep, n_cells)

! Get the number of Jacobian elements for calculations of mass, volume,
! number, etc. for this partitioning into this phase
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name)
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name, is_at_surface=.true.)

@@ -319,8 +319,7 @@ subroutine initialize(this, chem_spec_data, aero_rep, n_cells)
end if

! Get the phase ids for this aerosol phase
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name)

phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name,is_at_surface=.true.)
phase_ids = aero_rep(i_aero_rep)%val%phase_ids(phase_name, is_at_surface=.true.)

@@ -211,8 +211,8 @@ module camp_aero_rep_factory

!> Identifiers for aerosol representations - used by binary
!! packing/unpacking functions
integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1
integer(kind=i_kind), parameter :: AERO_REP_MODAL_BINNED_MASS = 2
integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1
integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you clarify what you mean by this?

integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1
integer(kind=i_kind), parameter :: AERO_REP_MODAL_BINNED_MASS = 2
integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1
integer(kind=i_kind), parameter :: AERO_REP_MODAL_BINNED_MASS = 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
integer(kind=i_kind), parameter :: AERO_REP_MODAL_BINNED_MASS = 2
integer(kind=i_kind), parameter :: AERO_REP_MODAL_BINNED_MASS = 2

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you clarify what you mean by this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure - white space somehow got added here in a file that you actually didn't appear to make any other modifications in. My suggestion should revert it back to how it was so that this file doesn't appear to be changed at all by your PR.


// index for the test phase (test-particle phase 2)
#define AERO_PHASE_IDX ((TEST_PARTICLE-1)*NUM_AERO_PHASE+1)

// number of Jacobian elements used for the test phase
#define N_JAC_ELEM 8
#define N_JAC_ELEM 12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#define N_JAC_ELEM 12
#define N_JAC_ELEM 12

@@ -49,7 +49,7 @@
"phase" : "AEROSOL",
"density [kg m-3]" : 1000.0,
"molecular weight [kg mol-1]" : 0.01801
},
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
},
},

@jtgasparik jtgasparik requested a review from jcurtis2 July 12, 2024 11:53
@jtgasparik jtgasparik merged commit b71175d into open-atmos:main Jul 12, 2024
1 check passed
@jtgasparik jtgasparik deleted the layer_development branch July 12, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants