| 228 |  | catch (OpenMDException& e) { | 
| 229 |  | sprintf(painCave.errMsg, | 
| 230 |  | "%s\n", | 
| 231 | < | e.getMessage().c_str()); | 
| 231 | > | e.what()); | 
| 232 |  | painCave.isFatal = 1; | 
| 233 |  | simError(); | 
| 234 |  | } | 
| 785 |  | } | 
| 786 |  | } | 
| 787 |  |  | 
| 788 | < | if (simParams->getOutputElectricField() | simParams->haveElectricField()) { | 
| 788 | > | if (simParams->getOutputElectricField() | | 
| 789 | > | simParams->haveElectricField() | simParams->haveUniformField() | | 
| 790 | > | simParams->haveUniformGradientStrength() | | 
| 791 | > | simParams->haveUniformGradientDirection1() | | 
| 792 | > | simParams->haveUniformGradientDirection2() ) { | 
| 793 |  | storageLayout |= DataStorage::dslElectricField; | 
| 794 |  | } | 
| 795 |  |  | 
| 796 | + | if (simParams->getOutputSitePotential() ) { | 
| 797 | + | storageLayout |= DataStorage::dslSitePotential; | 
| 798 | + | } | 
| 799 | + |  | 
| 800 |  | if (simParams->getOutputFluctuatingCharges()) { | 
| 801 |  | storageLayout |= DataStorage::dslFlucQPosition; | 
| 802 |  | storageLayout |= DataStorage::dslFlucQVelocity; |