| # | Line 1 | Line 1 | |
|---|---|---|
| 1 | #include <algorithm> | |
| 2 | < | #include <cstdlib> |
| 2 | > | #include <stdlib.h> |
| 3 | #include <iostream> | |
| 4 | < | #include <cmath> |
| 4 | > | #include <math.h> |
| 5 | #include <string> | |
| 6 | #include <sprng.h> | |
| 7 | #include "SimSetup.hpp" | |
| # | Line 31 | Line 31 | SimSetup::SimSetup(){ | |
| 31 | using namespace std; | |
| 32 | ||
| 33 | SimSetup::SimSetup(){ | |
| 34 | + | |
| 35 | + | initSuspend = false; |
| 36 | isInfoArray = 0; | |
| 37 | nInfo = 1; | |
| 38 | ||
| # | Line 53 | Line 55 | void SimSetup::setSimInfo(SimInfo* the_info, int theNi | |
| 55 | info = the_info; | |
| 56 | nInfo = theNinfo; | |
| 57 | isInfoArray = 1; | |
| 58 | + | initSuspend = true; |
| 59 | } | |
| 60 | ||
| 61 | ||
| # | Line 106 | Line 109 | void SimSetup::createSim(void){ | |
| 109 | ||
| 110 | // initialize the system coordinates | |
| 111 | ||
| 112 | < | if (!isInfoArray){ |
| 112 | > | if ( !initSuspend ){ |
| 113 | initSystemCoords(); | |
| 114 | ||
| 115 | if( !(globals->getUseInitTime()) ) | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |