Changes in src/boundary.cpp [8468cb:9473f6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/boundary.cpp
r8468cb r9473f6 789 789 * \param configuration contains box dimensions 790 790 * \param distance[NDIM] distance between filling molecules in each direction 791 * \param boundary length of boundary zone between molecule and filling mollecules 791 792 * \param epsilon distance to surface which is not filled 792 793 * \param RandAtomDisplacement maximum distance for random displacement per atom … … 795 796 * \return *mol pointer to new molecule with filled atoms 796 797 */ 797 molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation)798 molecule * FillBoxWithMolecule(MoleculeListClass *List, molecule *filler, config &configuration, const double distance[NDIM], const double boundary, const double RandomAtomDisplacement, const double RandomMolDisplacement, const bool DoRandomRotation) 798 799 { 799 800 Info FunctionInfo(__func__); … … 856 857 FillIt = false; 857 858 } else { 858 const bool FillResult = (!TesselStruct[i]->IsInnerPoint(CurrentPosition, LCList[i]));859 FillIt = FillIt && FillResult;860 if (Fill Result) {859 const double distance = (TesselStruct[i]->GetDistanceSquaredToSurface(CurrentPosition, LCList[i])); 860 FillIt = FillIt && (distance > boundary*boundary); 861 if (FillIt) { 861 862 Log() << Verbose(1) << "INFO: Position at " << CurrentPosition << " is outer point." << endl; 862 863 } else { 863 Log() << Verbose(1) << "INFO: Position at " << CurrentPosition << " is inner point." << endl; 864 Log() << Verbose(1) << "INFO: Position at " << CurrentPosition << " is inner point or within boundary." << endl; 865 break; 864 866 } 865 867 i++;
Note:
See TracChangeset
for help on using the changeset viewer.