Changeset c98620 for src/Potentials/StreamFactory_EmpiricalPotential.cpp
- Timestamp:
- May 19, 2021, 7:06:29 PM (4 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 9b0dcd
- Parents:
- 698185
- git-author:
- Frederik Heber <frederik.heber@…> (05/19/21 11:00:24)
- git-committer:
- Frederik Heber <frederik.heber@…> (05/19/21 19:06:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Potentials/StreamFactory_EmpiricalPotential.cpp
r698185 rc98620 49 49 std::istream &serialized) const 50 50 { 51 EmpiricalPotential * const potential = getDefaultPotential(potentialtype);51 EmpiricalPotential * full_potential; 52 52 // now stream in types and parameters 53 53 try { 54 EmpiricalPotential * const potential = getDefaultPotential(potentialtype); 54 55 potential->stream_from(serialized); 56 // also need to generate the binding model 57 full_potential = createInstance(potentialtype, potential->getParticleTypes()); 58 delete potential; 55 59 } catch (SerializerMissingValueException &e) { 56 60 ELOG(1, "Missing value for potential in line " << e.what()); 57 61 } 58 62 59 return potential;63 return full_potential; 60 64 }
Note:
See TracChangeset
for help on using the changeset viewer.
