ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/NVT.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/NVT.cpp (file contents):
Revision 1220 by tim, Thu Apr 22 03:29:30 2004 UTC vs.
Revision 1221 by chrisfen, Wed Jun 2 14:56:18 2004 UTC

# Line 220 | Line 220 | template<typename T> int NVT<T>::readyCheck() {
220  
221    if (!have_target_temp) {
222      sprintf( painCave.errMsg,
223 <             "NVT error: You can't use the NVT integrator without a targetTemp!\n"
223 >             "You can't use the NVT integrator without a targetTemp!\n"
224               );
225      painCave.isFatal = 1;
226 +    painCave.severity = OOPSE_ERROR;
227      simError();
228      return -1;
229    }
# Line 231 | Line 232 | template<typename T> int NVT<T>::readyCheck() {
232  
233    if (!have_tau_thermostat) {
234      sprintf( painCave.errMsg,
235 <             "NVT error: If you use the constant temperature\n"
236 <             "   integrator, you must set tauThermostat.\n");
235 >             "If you use the constant temperature\n"
236 >             "\tintegrator, you must set tauThermostat.\n");
237 >    painCave.severity = OOPSE_ERROR;
238      painCave.isFatal = 1;
239      simError();
240      return -1;
# Line 240 | Line 242 | template<typename T> int NVT<T>::readyCheck() {
242  
243    if (!have_chi_tolerance) {
244      sprintf( painCave.errMsg,
245 <             "NVT warning: setting chi tolerance to 1e-6\n");
245 >             "In NVT integrator: setting chi tolerance to 1e-6\n");
246      chiTolerance = 1e-6;
247      have_chi_tolerance = 1;
248 +    painCave.severity = OOPSE_INFO;
249      painCave.isFatal = 0;
250      simError();
251    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines