RHESSys / RHESSys

The Regional Hydro-Ecologic Simulation System
88 stars 60 forks source link

need a conservative solute tracer #56

Open laurencelin opened 9 years ago

laurencelin commented 9 years ago

(Next - variable time step RHESSys) Adding a biologically conservative solute tracer (e.g., Cl) would be very useful to understand the performance of terrestrial ecosystem in RHESSys.

cjcoats commented 9 years ago

laurencelin wrote:

Adding a biologically conservative solute tracer (e.g., Cl) would be very useful to understand the performance of terrestrial ecosystem in RHESSys.

The "general" solution to this would involve a re-write with a number of mass-related scalars, some of which have well-known names/indices. Ideally, these should have right-most ("fastest") subscripting in data structures.

You might even include water as one of the scalars, as in the following:

define NUM_SCALARS (6)

define H2O (0)

define NO3 (1)

define NH4 (2)

define DON (3)

define DOC (4)

define TRACER1 (5)

...

struct patch_object{ ... double surfce_scalars[NUM_SCALARS] ; double subsfc_scalars[NUM_SCALARS] ; double canopy_scalars[NUM_LAYERS][NUM_SCALARS] ; double litter_scalars[NUM_SCALARS] ; double stream_scalars[NUM_SCALARS] ; ...

selimnairb commented 9 years ago

@laurencelin Try adding labels now. I invited you to the RHESSys organization.

laurencelin commented 9 years ago

Thanks Brian. I added the labels “variable timestep” to both issues I posted. I was not able to make new labels but I think it’s ok.

Laurence