Skip to content

Commit 2c2ed25

Browse files
committed
Update spheregammadistribution
1 parent a5ffbb0 commit 2c2ed25

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/spheregammadistribution.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,3 +356,13 @@ void SphereGammaDistribution::checkBoundaryConditions(Sphere sph, std::vector<Sp
356356
}
357357
}
358358
}
359+
360+
void SphereGammaDistribution::printSubstrate(ostream &out)
361+
{
362+
out << 1e-3 << endl;
363+
for(unsigned i = 0; i < spheres.size(); i++){
364+
365+
out << spheres[i].center[0]*1e3 << " " << spheres[i].center[1]*1e3 << " " << spheres[i].center[2]*1e3 << " "
366+
<< spheres[i].radius*1e3 << endl;
367+
}
368+
}

src/spheregammadistribution.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class SphereGammaDistribution : public CylinderGammaDistribution
3939
*/
4040
void createGammaSubstrate();
4141

42+
void printSubstrate(std::ostream& out);
43+
44+
4245
private:
4346

4447
/*!

0 commit comments

Comments
 (0)