Skip to content

Commit 7e918bc

Browse files
committed
PDAF: comment out unused variables in solver_richards.c
Error: ``` parflow_pdaf/pfsimulator/parflow_lib/solver_richards.c:1817:16: error: unused variable ‘pfl_start’ [-Werror=unused-variable] ``` Background: For PDAF, the subgrid-loops, where these variables are originally used is commented out. However, up-to-now the (for PDAF) unused variable were still declared.
1 parent 24fd719 commit 7e918bc

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

pfsimulator/parflow_lib/solver_richards.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,8 +1707,8 @@ AdvanceRichards(PFModule * this_module, double start_time, /* Starting time
17071707
Subgrid *subgrid;
17081708
Subvector *p_sub, *s_sub, *et_sub, *m_sub, *po_sub, *dz_sub;
17091709
double *pp, *sp, *et, *ms, *po_dat, *dz_dat;
1710-
double sw_lat = .0;
1711-
double sw_lon = .0;
1710+
/* double sw_lat = .0; */
1711+
/* double sw_lon = .0; */
17121712
#endif
17131713

17141714
int istep = 1;
@@ -1807,12 +1807,12 @@ int istep = 1;
18071807

18081808
//CPS oasis definition phase
18091809
#ifdef HAVE_OAS3
1810-
int nlon = GetInt("ComputationalGrid.NX");
1811-
int nlat = GetInt("ComputationalGrid.NY");
1812-
double pfl_step = GetDouble("TimeStep.Value");
1813-
double pfl_stop = GetDouble("TimingInfo.StopTime");
1814-
// PDAF: getting start time
1815-
double pfl_start = GetDouble("TimingInfo.StartTime");
1810+
/* int nlon = GetInt("ComputationalGrid.NX"); */
1811+
/* int nlat = GetInt("ComputationalGrid.NY"); */
1812+
/* double pfl_step = GetDouble("TimeStep.Value"); */
1813+
/* double pfl_stop = GetDouble("TimingInfo.StopTime"); */
1814+
/* // PDAF: getting start time */
1815+
/* double pfl_start = GetDouble("TimingInfo.StartTime"); */
18161816

18171817
int is;
18181818
/* ForSubgridI(is, GridSubgrids(grid)) */

0 commit comments

Comments
 (0)