- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/FillWithMoleculeAction.cpp
rbe21fa rf10b0c 46 46 47 47 LOG(1, "INFO: Filling Box with water molecules, " 48 << " minimum distance to molecules" << params.boundary 49 << ", random atom displacement " << params.RandAtomDisplacement 50 << ", random molecule displacement " << params.RandMoleculeDisplacement 51 << ", distances between fillers (" << params.distances [0] << "," << params.distances[1] << "," << params.distances[2]52 << "), MinDistance " << params.MaxDistance 53 << ", DoRotate " << params.DoRotate << ".");48 << " minimum distance to molecules" << params.boundary.get() 49 << ", random atom displacement " << params.RandAtomDisplacement.get() 50 << ", random molecule displacement " << params.RandMoleculeDisplacement.get() 51 << ", distances between fillers (" << params.distances.get()[0] << "," << params.distances.get()[1] << "," << params.distances.get()[2] 52 << "), MinDistance " << params.MaxDistance.get() 53 << ", DoRotate " << params.DoRotate.get() << "."); 54 54 // construct water molecule 55 55 std::vector<molecule *> presentmolecules = World::getInstance().getAllMolecules(); 56 56 // LOG(0, presentmolecules.size() << " molecules initially are present."); 57 std::string FilenameSuffix = params.fillername. string().substr(params.fillername.string().find_last_of('.')+1, params.fillername.string().length());57 std::string FilenameSuffix = params.fillername.get().string().substr(params.fillername.get().string().find_last_of('.')+1, params.fillername.get().string().length()); 58 58 ifstream input; 59 LOG(0, "STATUS: Loading filler molecule " << params.fillername. string().c_str()59 LOG(0, "STATUS: Loading filler molecule " << params.fillername.get().string().c_str() 60 60 << " of suffix " << FilenameSuffix << "."); 61 input.open(params.fillername. string().c_str());61 input.open(params.fillername.get().string().c_str()); 62 62 FormatParserStorage::getInstance().load(input, FilenameSuffix); 63 63 input.close(); … … 67 67 ASSERT(filler != NULL, 68 68 "MoleculeFillWithMoleculeAction::performCall() - no last molecule found, nothing parsed?."); 69 filler->SetNameFromFilename(params.fillername. string().c_str());69 filler->SetNameFromFilename(params.fillername.get().string().c_str()); 70 70 World::AtomComposite Set = filler->getAtomSet(); 71 71 LOG(1, "INFO: The filler molecules has " << Set.size() << " atoms."); … … 78 78 double distance[NDIM]; 79 79 for (int i=0;i<NDIM;i++) 80 distance[i] = params.distances [i];80 distance[i] = params.distances.get()[i]; 81 81 FillBoxWithMolecule( 82 82 World::getInstance().getMolecules(), 83 83 filler, *(World::getInstance().getConfig()), 84 params.MaxDistance ,84 params.MaxDistance.get(), 85 85 distance, 86 params.boundary ,87 params.RandAtomDisplacement ,88 params.RandMoleculeDisplacement ,89 params.DoRotate );86 params.boundary.get(), 87 params.RandAtomDisplacement.get(), 88 params.RandMoleculeDisplacement.get(), 89 params.DoRotate.get()); 90 90 for (molecule::iterator iter = filler->begin(); !filler->empty(); iter = filler->begin()) { 91 91 atom *Walker = *iter;
Note:
See TracChangeset
for help on using the changeset viewer.