Skip to content

Commit

Permalink
added global valible Old_SW_VegProd for retaiing actual values read f…
Browse files Browse the repository at this point in the history
…rom input file sbe_prod_v31.in
  • Loading branch information
ashishtiwari2006 committed May 27, 2015
1 parent 5f2da24 commit 12a99e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SW_VegProd.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ extern Bool EchoInits;
extern Bool collectInData;
#endif
SW_VEGPROD SW_VegProd; /* declared here, externed elsewhere */
SW_VEGPROD Old_SW_VegProd; /* declared here for reading old value of file sbe_prod_v31, externed elsewhere */

/* =================================================== */
/* Module-Level Variables */
Expand Down Expand Up @@ -537,6 +538,8 @@ void SW_VPD_read(void) {

if (EchoInits)
_echo_inits();
//save original copy of SW_VegProd at oldSW_VegProd before it getting updated in code flow
Old_SW_VegProd = SW_VegProd;
}
#ifdef RSOILWAT
SEXP onGet_SW_VPD() {
Expand Down

0 comments on commit 12a99e8

Please sign in to comment.