--- trunk/gadget/maininfo.h 2014/02/10 17:09:07 1 +++ trunk/gadget/maininfo.h 2017/04/07 09:20:55 20 @@ -50,6 +50,12 @@ * \param filename is the name of the file */ void setPrintFinalFile(char* filename); +#ifdef _OPENMP + /** + * \brief This function will store parallel options + */ + void setParallel(char* filename); +#endif /** * \brief This function will store the filename that the initial values for the model parameters will be read from * \param filename is the name of the file @@ -85,6 +91,13 @@ * \return flag */ int runPrint() const { return runprint; }; +#ifdef _OPENMP + /** + * \brief This function will return the flag used to determine whether the current simulation should print the model output + * \return flag + */ + int runParallel() const { return runparallel; }; +#endif /** * \brief This function will return the flag used to determine whether the optimisation parameters have been given * \return flag @@ -144,7 +157,16 @@ * \brief This function will return the maximum ratio of a stock that can be consumed on any given timestep * \return maxratio */ - double getMaxRatio() const { return maxratio; }; + double getMaxRatio() const { + return maxratio; + } + /** + * \brief This function will return seeds used in SA + * \return seed array of unsigned int with the seeds used in SA + */ + unsigned* getSeed() const {return seed;}; + + private: /** * \brief This function will read input from a file instead of the command line @@ -219,6 +241,17 @@ * \brief This is the maximum ratio of a stock that can be consumed on any given timestep */ double maxratio; + /** + * \brief vector with the seeds used in SA + * \note see[0] = seed | see[1] = seedM | see[2] = seedP + */ + unsigned* seed; +#ifdef _OPENMP + /** + * \brief This is the flag used to denote whether the likelihood score should be optimised in pararrel */ + int runparallel; +#endif }; #endif +