Skip to content

Commit 4476a1e

Browse files
authored
Commenting out unused variables in PseudoAdvanceRichards (#10)
1 parent 6ced8f8 commit 4476a1e

1 file changed

Lines changed: 38 additions & 38 deletions

File tree

pfsimulator/parflow_lib/solver_richards.c

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4928,29 +4928,29 @@ PseudoAdvanceRichards(PFModule * this_module, double start_time, /* Startin
49284928
printf("Pseudo richard for OAS init\n");
49294929
//>>TSMP-PDAF internal change end
49304930

4931-
PublicXtra *public_xtra = (PublicXtra*)PFModulePublicXtra(this_module);
4931+
/* PublicXtra *public_xtra = (PublicXtra*)PFModulePublicXtra(this_module); */
49324932
InstanceXtra *instance_xtra =
49334933
(InstanceXtra*)PFModuleInstanceXtra(this_module);
4934-
Problem *problem = (public_xtra->problem);
4934+
/* Problem *problem = (public_xtra->problem); */
49354935

4936-
int max_iterations = (public_xtra->max_iterations);
4937-
int print_satur = (public_xtra->print_satur);
4938-
int print_wells = (public_xtra->print_wells);
4936+
/* int max_iterations = (public_xtra->max_iterations); */
4937+
/* int print_satur = (public_xtra->print_satur); */
4938+
/* int print_wells = (public_xtra->print_wells); */
49394939

4940-
PFModule *problem_saturation = (instance_xtra->problem_saturation);
4941-
PFModule *phase_density = (instance_xtra->phase_density);
4942-
PFModule *select_time_step = (instance_xtra->select_time_step);
4943-
PFModule *l2_error_norm = (instance_xtra->l2_error_norm);
4944-
PFModule *nonlin_solver = (instance_xtra->nonlin_solver);
4940+
/* PFModule *problem_saturation = (instance_xtra->problem_saturation); */
4941+
/* PFModule *phase_density = (instance_xtra->phase_density); */
4942+
/* PFModule *select_time_step = (instance_xtra->select_time_step); */
4943+
/* PFModule *l2_error_norm = (instance_xtra->l2_error_norm); */
4944+
/* PFModule *nonlin_solver = (instance_xtra->nonlin_solver); */
49454945

4946-
ProblemData *problem_data = (instance_xtra->problem_data);
4946+
/* ProblemData *problem_data = (instance_xtra->problem_data); */
49474947

4948-
int start_count = ProblemStartCount(problem);
4949-
double dump_interval = ProblemDumpInterval(problem);
4948+
/* int start_count = ProblemStartCount(problem); */
4949+
/* double dump_interval = ProblemDumpInterval(problem); */
49504950

4951-
Vector *porosity = ProblemDataPorosity(problem_data);
4952-
Vector *evap_trans_sum = instance_xtra->evap_trans_sum;
4953-
Vector *overland_sum = instance_xtra->overland_sum; /* sk: Vector of outflow at the boundary */
4951+
/* Vector *porosity = ProblemDataPorosity(problem_data); */
4952+
/* Vector *evap_trans_sum = instance_xtra->evap_trans_sum; */
4953+
/* Vector *overland_sum = instance_xtra->overland_sum; /\* sk: Vector of outflow at the boundary *\/ */
49544954

49554955
if (evap_trans == NULL)
49564956
{
@@ -4960,8 +4960,8 @@ PseudoAdvanceRichards(PFModule * this_module, double start_time, /* Startin
49604960
#ifdef HAVE_OAS3
49614961
Grid *grid = (instance_xtra->grid);
49624962
Subgrid *subgrid;
4963-
Subvector *p_sub, *s_sub, *et_sub, *m_sub, *po_sub, *dz_sub;
4964-
double *pp, *sp, *et, *ms, *po_dat, *dz_dat;
4963+
/* Subvector *p_sub, *s_sub, *et_sub, *m_sub, *po_sub, *dz_sub; */
4964+
/* double *pp, *sp, *et, *ms, *po_dat, *dz_dat; */
49654965
double sw_lat = .0;
49664966
double sw_lon = .0;
49674967
#endif
@@ -5024,29 +5024,29 @@ PseudoAdvanceRichards(PFModule * this_module, double start_time, /* Startin
50245024
// #endif
50255025
//>>TSMP-PDAF internal change end
50265026

5027-
int any_file_dumped;
5028-
int clm_file_dumped;
5029-
int dump_files = 0;
5027+
/* int any_file_dumped; */
5028+
/* int clm_file_dumped; */
5029+
/* int dump_files = 0; */
50305030

5031-
int retval;
5032-
int converged;
5033-
int take_more_time_steps;
5034-
int conv_failures;
5035-
int max_failures = public_xtra->max_convergence_failures;
5031+
/* int retval; */
5032+
/* int converged; */
5033+
/* int take_more_time_steps; */
5034+
/* int conv_failures; */
5035+
/* int max_failures = public_xtra->max_convergence_failures; */
50365036

5037-
double t;
5038-
double dt = 0.0;
5039-
double ct = 0.0;
5040-
double cdt = 0.0;
5041-
double print_dt;
5042-
double dtmp, err_norm;
5043-
double gravity = ProblemGravity(problem);
5037+
/* double t; */
5038+
/* double dt = 0.0; */
5039+
/* double ct = 0.0; */
5040+
/* double cdt = 0.0; */
5041+
/* double print_dt; */
5042+
/* double dtmp, err_norm; */
5043+
/* double gravity = ProblemGravity(problem); */
50445044

5045-
VectorUpdateCommHandle *handle;
5045+
/* VectorUpdateCommHandle *handle; */
50465046

5047-
char dt_info;
5048-
char file_prefix[2048], file_type[2048], file_postfix[2048];
5049-
char nc_postfix[2048];
5047+
/* char dt_info; */
5048+
char file_prefix[2048];//, file_type[2048], file_postfix[2048];
5049+
/* char nc_postfix[2048]; */
50505050

50515051
//>>TSMP-PDAF internal change beginning (compare to AdvanceRichards)
50525052
// int Stepcount = 0; /* Added for transient EvapTrans file management - NBE */
@@ -5063,7 +5063,7 @@ PseudoAdvanceRichards(PFModule * this_module, double start_time, /* Startin
50635063
double pfl_step = GetDouble("TimeStep.Value");
50645064
double pfl_stop = GetDouble("TimingInfo.StopTime");
50655065
//>>TSMP-PDAF internal change beginning (compare to AdvanceRichards)
5066-
double pfl_start = GetDouble("TimingInfo.StartTime");
5066+
/* double pfl_start = GetDouble("TimingInfo.StartTime"); */
50675067
//>>TSMP-PDAF internal change end
50685068

50695069
int is;

0 commit comments

Comments
 (0)