# | Line 1 | Line 1 | |
---|---|---|
1 | /* | |
2 | < | * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
2 | > | * Copyright (c) 2005, 2010 The University of Notre Dame. All Rights Reserved. |
3 | * | |
4 | * The University of Notre Dame grants you ("Licensee") a | |
5 | * non-exclusive, royalty free, license to use, modify and | |
# | Line 139 | Line 139 | namespace OpenMD { | |
139 | statfile_.precision(8); | |
140 | for (int i =0; i < mask_.size(); ++i) { | |
141 | if (mask_[i]) { | |
142 | < | statfile_ << "\t" << s[i]; |
142 | > | if (! std::isinf(s[i]) && ! std::isnan(s[i])){ |
143 | > | statfile_ << "\t" << s[i]; |
144 | > | } |
145 | > | else{ |
146 | > | sprintf( painCave.errMsg, |
147 | > | "Statwriter detected a numerical error writing: %s ", |
148 | > | Stats::getTitle(i).c_str()); |
149 | > | painCave.isFatal = 1; |
150 | > | simError(); |
151 | > | } |
152 | > | |
153 | } | |
154 | } | |
155 | statfile_ << std::endl; | |
# | Line 148 | Line 158 | namespace OpenMD { | |
158 | ||
159 | #ifdef IS_MPI | |
160 | } | |
161 | + | errorCheckPoint(); |
162 | #endif // is_mpi | |
163 | } | |
164 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |