Skip to content

Commit

Permalink
intf_DA: Stepcount, Loopcount bugfix, related to #153
Browse files Browse the repository at this point in the history
  • Loading branch information
jjokella committed Jan 17, 2023
1 parent ca6c3d0 commit cab2630
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bldsva/intf_DA/pdaf1_1/tsmp/parflow/solver_richards.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,8 +1601,10 @@ char filename[2048];
int fflag, fstart, fstop; // IMF: index w/in 3D forcing array corresponding to istep
int n, c; // IMF: index vars for looping over subgrid data BH: added c
int ind_veg; /*BH: temporary variable to store vegetation index */
int Stepcount = 0; /* Added for transient EvapTrans file management - NBE */
int Loopcount = 0; /* Added for transient EvapTrans file management - NBE */
//>>TSMP-PDAF comment out beginning
/* int Stepcount = 0; /\* Added for transient EvapTrans file management - NBE *\/ */
/* int Loopcount = 0; /\* Added for transient EvapTrans file management - NBE *\/ */
//<<TSMP-PDAF comment out end
double sw=NAN, lw=NAN, prcp=NAN, tas=NAN, u=NAN, v=NAN, patm=NAN, qatm=NAN; // IMF: 1D forcing vars (local to AdvanceRichards)
double lai[18], sai[18], z0m[18], displa[18]; /*BH: array with lai/sai/z0m/displa values for each veg class */
double *sw_data = NULL;
Expand Down Expand Up @@ -1667,6 +1669,10 @@ char filename[2048];
char file_prefix[2048], file_type[2048], file_postfix[2048];
char nc_postfix[2048];

//>>TSMP-PDAF addition beginning
int Stepcount = 0; /* Added for transient EvapTrans file management - NBE */
int Loopcount = 0; /* Added for transient EvapTrans file management - NBE */
//<<TSMP-PDAF addition end
int first_tstep = 1;

sprintf(file_prefix, "%s", GlobalsOutFileName);
Expand Down

0 comments on commit cab2630

Please sign in to comment.