Changed main function to only def poub and pname if not declared.
This commit is contained in:
@@ -10,10 +10,15 @@
|
|||||||
#include "simulation.h"
|
#include "simulation.h"
|
||||||
|
|
||||||
int main(int argc, const char * argv[]) {
|
int main(int argc, const char * argv[]) {
|
||||||
|
|
||||||
|
if (getenv("poub") == NULL) {
|
||||||
char poub[]="poub=/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron";
|
char poub[]="poub=/Users/ChristianReiling/Documents/Masterarbeit/katrin-plasma/src/mc_electron";
|
||||||
char pname[]="pname=parameters";
|
|
||||||
putenv(poub);
|
putenv(poub);
|
||||||
|
}
|
||||||
|
if (getenv("pname") == NULL) {
|
||||||
|
char pname[]="pname=parameters";
|
||||||
putenv(pname);
|
putenv(pname);
|
||||||
|
}
|
||||||
|
|
||||||
Simulation SIM;
|
Simulation SIM;
|
||||||
SIM.init();
|
SIM.init();
|
||||||
|
|||||||
Reference in New Issue
Block a user