- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/FillAction/FillRegularGridAction.cpp
rbe21fa rf10b0c 82 82 LinkedCell_deprecated * LC = NULL; 83 83 Tesselation * TesselStruct = NULL; 84 if (params.SphereRadius != 0.) {84 if (params.SphereRadius.get() != 0.) { 85 85 if ( atoms.size() == 0) { 86 ELOG(1, "You have given a sphere radius " << params.SphereRadius 86 ELOG(1, "You have given a sphere radius " << params.SphereRadius.get() 87 87 << " != 0, but have not select any molecules."); 88 88 return Action::failure; … … 92 92 93 93 // create tesselation 94 LC = new LinkedCell_deprecated(cloud, 2.*params.SphereRadius );94 LC = new LinkedCell_deprecated(cloud, 2.*params.SphereRadius.get()); 95 95 TesselStruct = new Tesselation; 96 (*TesselStruct)(cloud, params.SphereRadius );96 (*TesselStruct)(cloud, params.SphereRadius.get()); 97 97 98 98 // and create predicate … … 106 106 FillPredicate *voidnode_predicate = new FillPredicate( 107 107 IsVoidNode_FillPredicate( 108 Sphere(zeroVec, params.mindistance )108 Sphere(zeroVec, params.mindistance.get()) 109 109 ) 110 110 ); … … 112 112 if (surface_predicate != NULL) 113 113 Andpredicate = (Andpredicate) && !(*surface_predicate); 114 Mesh *mesh = new CubeMesh(params.counts , params.offset, World::getInstance().getDomain().getM());114 Mesh *mesh = new CubeMesh(params.counts.get(), params.offset.get(), World::getInstance().getDomain().getM()); 115 115 Inserter *inserter = new Inserter( 116 116 Inserter::impl_ptr( 117 117 new RandomInserter( 118 params.RandAtomDisplacement ,119 params.RandMoleculeDisplacement ,120 params.DoRotate )118 params.RandAtomDisplacement.get(), 119 params.RandMoleculeDisplacement.get(), 120 params.DoRotate.get()) 121 121 ) 122 122 );
Note:
See TracChangeset
for help on using the changeset viewer.