-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
Co-authored-by: Jeffrey Curtis <jcurtis2@illinois.edu>
Single particle with multiple layers
Rxns with layers
There was a problem hiding this 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
test/unit_aero_rep_data/test_aero_rep_single_particle_one_layer.c
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
There was a problem hiding this 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" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove added line.
src/rxns/rxn_HL_phase_transfer.F90
Outdated
@@ -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.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.) |
src/rxns/rxn_HL_phase_transfer.F90
Outdated
@@ -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.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.) |
src/aero_rep_factory.F90
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1 | |
integer(kind=i_kind), parameter :: AERO_REP_SINGLE_PARTICLE = 1 |
There was a problem hiding this comment.
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?
src/aero_rep_factory.F90
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
integer(kind=i_kind), parameter :: AERO_REP_MODAL_BINNED_MASS = 2 | |
integer(kind=i_kind), parameter :: AERO_REP_MODAL_BINNED_MASS = 2 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#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 | |||
}, | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}, | |
}, |
Added layers to aerosol particles in single particle representation