Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
common.h
Go to the documentation of this file.
1/*
2 * University of Illinois Open Source License
3 * Copyright 2008-2018 Luthey-Schulten Group,
4 * All rights reserved.
5 *
6 * Developed by: Luthey-Schulten Group
7 * University of Illinois at Urbana-Champaign
8 * http://www.scs.uiuc.edu/~schulten
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a copy of
11 * this software and associated documentation files (the Software), to deal with
12 * the Software without restriction, including without limitation the rights to
13 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14 * of the Software, and to permit persons to whom the Software is furnished to
15 * do so, subject to the following conditions:
16 *
17 * - Redistributions of source code must retain the above copyright notice,
18 * this list of conditions and the following disclaimers.
19 *
20 * - Redistributions in binary form must reproduce the above copyright notice,
21 * this list of conditions and the following disclaimers in the documentation
22 * and/or other materials provided with the distribution.
23 *
24 * - Neither the names of the Luthey-Schulten Group, University of Illinois at
25 * Urbana-Champaign, nor the names of its contributors may be used to endorse or
26 * promote products derived from this Software without specific prior written
27 * permission.
28 *
29 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
32 * THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35 * OTHER DEALINGS WITH THE SOFTWARE.
36 *
37 * Author(s): Elijah Roberts
38 */
39
40#ifndef LKMAIN_H_
41#define LKMAIN_H_
42
43#include <string>
44#include <list>
45#include <vector>
46#include <ctime>
47#include "me/MESolverFactory.h"
48
49using std::string;
50using std::vector;
51
52void printCopyright(int argc, char** argv);
54void parseArguments(int argc, char** argv, const char* defaultSolver);
55void parseIntListArg(vector<int> & list, char * option);
56time_t parseTimeArg(char * option);
57float parseIntReciprocalArg(char * option);
58void printUsage(int argc, char** argv);
60void initPython();
61void finalizePython();
62void startInterpreter();
63void executeScript(std::string filename, std::list<std::string> arguments, int replicate=0);
64
65#endif
int getPhysicalCpuCores()
Definition common.cpp:76
void executeScript(std::string filename, std::list< std::string > arguments, int replicate=0)
void printUsage(int argc, char **argv)
Definition common.cpp:376
void parseIntListArg(vector< int > &list, char *option)
Definition common.cpp:299
void discoverEnvironment()
Definition lm_python.cpp:247
void printCopyright(int argc, char **argv)
Definition util.cpp:196
void initPython()
Definition lm_python.cpp:288
void finalizePython()
Definition lm_python.cpp:301
void startInterpreter()
Definition lm_python.cpp:306
float parseIntReciprocalArg(char *option)
Definition common.cpp:361
time_t parseTimeArg(char *option)
Definition common.cpp:325
void parseArguments(int argc, char **argv, const char *defaultSolver)
Definition common.cpp:98
string filename
Definition lm_setdm.cpp:77