# | Line 9 | Line 9 | |
---|---|---|
9 | ||
10 | #include "fortranWrappers.hpp" | |
11 | ||
12 | + | #ifdef IS_MPI |
13 | + | #include "mpiSimulation.hpp" |
14 | + | #endif |
15 | + | |
16 | SimInfo* currentInfo; | |
17 | ||
18 | SimInfo::SimInfo(){ | |
# | Line 128 | Line 132 | void SimInfo::refreshSim(){ | |
132 | ||
133 | simtype fInfo; | |
134 | int isError; | |
135 | + | int n_global; |
136 | int* excl; | |
137 | ||
138 | fInfo.rrf = 0.0; | |
# | Line 152 | Line 157 | void SimInfo::refreshSim(){ | |
157 | fInfo.SIM_uses_LJ = useLJ; | |
158 | fInfo.SIM_uses_sticky = useSticky; | |
159 | //fInfo.SIM_uses_sticky = 0; | |
160 | < | //fInfo.SIM_uses_dipoles = useDipole; |
161 | < | fInfo.SIM_uses_dipoles = 0; |
160 | > | fInfo.SIM_uses_dipoles = useDipole; |
161 | > | //fInfo.SIM_uses_dipoles = 0; |
162 | //fInfo.SIM_uses_RF = useReactionField; | |
163 | fInfo.SIM_uses_RF = 0; | |
164 | fInfo.SIM_uses_GB = useGB; | |
# | Line 161 | Line 166 | void SimInfo::refreshSim(){ | |
166 | ||
167 | excl = Exclude::getArray(); | |
168 | ||
169 | + | #ifdef IS_MPI |
170 | + | n_global = mpiSim->getTotAtoms(); |
171 | + | #else |
172 | + | n_global = n_atoms; |
173 | + | #endif |
174 | + | |
175 | isError = 0; | |
176 | ||
177 | < | // fInfo; |
178 | < | // n_atoms; |
179 | < | // identArray; |
169 | < | // n_exclude; |
170 | < | // excludes; |
171 | < | // nGlobalExcludes; |
172 | < | // globalExcludes; |
173 | < | // isError; |
177 | > | setFsimulation( &fInfo, &n_global, &n_atoms, identArray, &n_exclude, excl, |
178 | > | &nGlobalExcludes, globalExcludes, molMembershipArray, |
179 | > | &isError ); |
180 | ||
175 | – | setFsimulation( &fInfo, &n_atoms, identArray, &n_exclude, excl, |
176 | – | &nGlobalExcludes, globalExcludes, &isError ); |
177 | – | |
181 | if( isError ){ | |
182 | ||
183 | sprintf( painCave.errMsg, |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |