@@ -249,84 +249,70 @@ CModel::~CModel()
249249
250250// ////////////////////////////////////////////////////////////////
251251// / \brief Returns pointer to global parameters object
252- // /
253252// / \return Pointer to global parameters object
254253//
255- CGlobalParams* CModel::GetGlobalParams () const {
256- return _pGlobalParams;
257- }
254+ CGlobalParams* CModel::GetGlobalParams () const { return _pGlobalParams;}
258255
259256// ////////////////////////////////////////////////////////////////
260257// / \brief Returns number of sub basins in model
261- // /
262258// / \return Integer number of sub basins
263259//
264260int CModel::GetNumSubBasins () const {return _nSubBasins;}
265261
266262// ////////////////////////////////////////////////////////////////
267263// / \brief Returns number of SB groups
268- // /
269264// / \return Integer number of SB groups
270265//
271266int CModel::GetNumSubBasinGroups () const { return _nSBGroups; }
272267
273268// ////////////////////////////////////////////////////////////////
274269// / \brief Returns number of HRUs in model
275- // /
276270// / \return Integer number of HRUs
277271//
278272int CModel::GetNumHRUs () const {return _nHydroUnits;}
279273
280274// ////////////////////////////////////////////////////////////////
281275// / \brief Returns number of HRU groups
282- // /
283276// / \return Integer number of HRU groups
284277//
285278int CModel::GetNumHRUGroups () const {return _nHRUGroups;}
286279
287280// ////////////////////////////////////////////////////////////////
288281// / \brief Returns number of gauges in model
289- // /
290282// / \return Integer number of gauges in model
291283//
292284int CModel::GetNumGauges () const {return _nGauges;}
293285
294286// ////////////////////////////////////////////////////////////////
295287// / \brief Returns number of gridded forcings in model
296- // /
297288// / \return Integer number of gridded forcings in model
298289//
299290int CModel::GetNumForcingGrids () const {return _nForcingGrids;}
300291
301292// ////////////////////////////////////////////////////////////////
302293// / \brief Returns number of state variables per HRU in model
303- // /
304294// / \return Integer number of state variables per HRU in model
305295//
306296int CModel::GetNumStateVars () const {return _nStateVars;}
307297
308298// ////////////////////////////////////////////////////////////////
309299// / \brief Returns number of soil layers
310- // /
311300// / \return Integer number of soil layers
312301//
313302int CModel::GetNumSoilLayers () const {return _nSoilVars;}
314303
315304// ////////////////////////////////////////////////////////////////
316305// / \brief Returns number of hydrologic processes simulated by model
317- // /
318306// / \return Integer number of hydrologic processes simulated by model
319307//
320308int CModel::GetNumProcesses () const {return _nProcesses;}
321309
322310// ////////////////////////////////////////////////////////////////
323311// / \brief Returns total modeled watershed area
324- // /
325312// / \return total modeled watershed area [km2]
326313//
327314double CModel::GetWatershedArea () const {return _WatershedArea;}
328315
329-
330316// ////////////////////////////////////////////////////////////////
331317// / \brief Returns number of observation time series
332318// / \return number of observation time series
@@ -371,13 +357,11 @@ const CTimeSeriesABC* CModel::GetSimulatedTS(const int i) const {
371357
372358// ////////////////////////////////////////////////////////////////
373359// / \brief Returns specific hydrologic process denoted by parameter
374- // /
375360// / \param j [in] Process index
376361// / \return pointer to hydrologic process corresponding to passed index j
377362//
378363CHydroProcessABC *CModel::GetProcess (const int j) const
379364{
380-
381365#ifdef _STRICTCHECK_
382366 ExitGracefullyIf ((j<0 ) || (j>=_nProcesses)," CModel GetProcess::improper index" ,BAD_DATA);
383367#endif
@@ -386,7 +370,6 @@ CHydroProcessABC *CModel::GetProcess(const int j) const
386370
387371// ////////////////////////////////////////////////////////////////
388372// / \brief Returns specific gauge denoted by index
389- // /
390373// / \param g [in] Gauge index
391374// / \return pointer to gauge corresponding to passed index g
392375//
@@ -400,7 +383,6 @@ CGauge *CModel::GetGauge(const int g) const
400383
401384// ////////////////////////////////////////////////////////////////
402385// / \brief Returns specific forcing grid denoted by index
403- // /
404386// / \param f [in] Forcing Grid index
405387// / \return pointer to gauge corresponding to passed index g
406388//
@@ -417,7 +399,6 @@ CForcingGrid *CModel::GetForcingGrid(const forcing_type &ftyp) const
417399
418400// ////////////////////////////////////////////////////////////////
419401// / \brief Returns specific HRU denoted by index k
420- // /
421402// / \param k [in] HRU index
422403// / \return pointer to HRU corresponding to passed index k
423404//
@@ -431,7 +412,6 @@ CHydroUnit *CModel::GetHydroUnit(const int k) const
431412
432413// ////////////////////////////////////////////////////////////////
433414// / \brief Returns specific HRU with HRU identifier HRUID
434- // /
435415// / \param HRUID [in] HRU identifier
436416// / \return pointer to HRU corresponding to passed ID HRUID, NULL if no such HRU exists
437417//
@@ -449,7 +429,6 @@ CHydroUnit *CModel::GetHRUByID(const long long int HRUID) const
449429
450430// ////////////////////////////////////////////////////////////////
451431// / \brief Returns specific HRU group denoted by parameter kk
452- // /
453432// / \param kk [in] HRU group index
454433// / \return pointer to HRU group corresponding to passed index kk
455434//
@@ -463,7 +442,6 @@ CHRUGroup *CModel::GetHRUGroup(const int kk) const
463442
464443// ////////////////////////////////////////////////////////////////
465444// / \brief Returns specific HRU group denoted by string parameter
466- // /
467445// / \param name [in] String name of HRU group
468446// / \return pointer to HRU group corresponding to passed name, or NULL if this group doesn't exist
469447//
@@ -513,7 +491,6 @@ CSubBasin *CModel::GetSubBasin(const int p) const
513491
514492// ////////////////////////////////////////////////////////////////
515493// / \brief Returns index of subbasin downstream from subbasin referred to by index
516- // /
517494// / \param p [in] List index for accessing subbasin
518495// / \return downstream subbasin index, if input index is valid; -1 if there is no downstream basin
519496//
@@ -527,7 +504,6 @@ int CModel::GetDownstreamBasin(const int p) const
527504
528505// ////////////////////////////////////////////////////////////////
529506// / \brief Returns subbasin object corresponding to passed subbasin ID
530- // /
531507// / \param SBID [in] long long integer sub basin ID
532508// / \return pointer to Sub basin object corresponding to passed ID, if ID is valid
533509//
@@ -546,7 +522,6 @@ CSubBasin *CModel::GetSubBasinByID(const long long SBID) const
546522
547523// ////////////////////////////////////////////////////////////////
548524// / \brief Returns sub basin index corresponding to passed subbasin ID
549- // /
550525// / \param SBID [in] Integer subbasin ID
551526// / \return SubBasin index corresponding to passed ID, if ID is valid
552527//
@@ -564,7 +539,6 @@ int CModel::GetSubBasinIndex(const long long SBID) const
564539}
565540// ////////////////////////////////////////////////////////////////
566541// / \brief Returns array of pointers to subbasins upstream of subbasin SBID, including that subbasin
567- // /
568542// / \param SBID [in] long long int subbasin ID
569543// / \param nUpstream [out] size of array of pointers of subbasins
570544// / \return array of pointers to subbasins upstream of subbasin SBID, including that subbasin
@@ -774,7 +748,6 @@ int CModel::GetStateVarLayer(const int ii) const
774748
775749// ////////////////////////////////////////////////////////////////
776750// / \brief Checks if state variable passed exists in model
777- // /
778751// / \param typ [in] State variable type
779752// / \return Boolean indicating whether state variable exists in model
780753//
@@ -785,14 +758,12 @@ bool CModel::StateVarExists(sv_type typ) const
785758
786759// ////////////////////////////////////////////////////////////////
787760// / \brief Returns lake storage variable index
788- // /
789761// / \return Integer index of lake storage variable
790762//
791763int CModel::GetLakeStorageIndex () const {return _lake_sv;}
792764
793765// ////////////////////////////////////////////////////////////////
794766// / \brief Returns gauge index of gauge with specified name
795- // /
796767// / \return Integer index of gauge
797768// / \param name [in] specified name
798769//
@@ -806,7 +777,6 @@ int CModel::GetGaugeIndexFromName (const string name) const
806777
807778// ////////////////////////////////////////////////////////////////
808779// / \brief Returns forcing grid index of forcing grid with specified type
809- // /
810780// / \return Integer index of forcing grid
811781// / \param name [in] specified type
812782//
@@ -821,7 +791,6 @@ int CModel::GetForcingGridIndexFromType (const forcing_type &typ) const
821791// ////////////////////////////////////////////////////////////////
822792// / \brief Returns current mass/energy flux (mm/d, MJ/m2/d, mg/m2/d) between two storage compartments iFrom and iTo
823793// / \details required for advective transport processes
824- // /
825794// / \param k [in] HRU index
826795// / \param js [in] index of process connection (i.e., j*)
827796// / \param &Options [in] Global model options information
@@ -836,7 +805,6 @@ double CModel::GetFlux(const int k, const int js, const optStruct &Options) cons
836805}
837806// ////////////////////////////////////////////////////////////////
838807// / \brief returns concentration or temperature within hru k with storage index i
839- // /
840808// / \param k [in] HRU index
841809// / \param i [in] mass/energy state variable index
842810//
@@ -848,7 +816,6 @@ double CModel::GetConcentration(const int k, const int i) const
848816// ////////////////////////////////////////////////////////////////
849817// / \brief Returns current mass/energy flow (mm-m2/d, MJ/d, mg/d) between two storage compartments iFrom and iTo
850818// / \details required for advective transport processes
851- // /
852819// / \param k [in] HRU index
853820// / \param qs [in] global index of process connection (i.e., q*)
854821// / \param &Options [in] Global model options information
@@ -862,7 +829,6 @@ double CModel::GetLatFlow(const int qs,const optStruct &Options) const
862829}
863830// ////////////////////////////////////////////////////////////////
864831// / \brief Returns cumulative flux to/from storage unit i
865- // /
866832// / \param k [in] index of HRU
867833// / \param i [in] index of storage compartment
868834// / \param to [in] true if evaluating cumulative flux to storage compartment, false for 'from'
@@ -903,7 +869,6 @@ double CModel::GetCumulativeFlux(const int k, const int i, const bool to) const
903869}
904870// ////////////////////////////////////////////////////////////////
905871// / \brief Returns cumulative gross flux between unit iFrom and iTo in HRU k
906- // /
907872// / \param k [in] index of HRU
908873// / \param iFrom [in] index of storage compartment
909874// / \param iTo [in] index of storage compartment
0 commit comments