Skip to content

Commit

Permalink
Update spheregammadistribution
Browse files Browse the repository at this point in the history
  • Loading branch information
RGardier committed Jun 16, 2022
1 parent a5ffbb0 commit 2c2ed25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/spheregammadistribution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,13 @@ void SphereGammaDistribution::checkBoundaryConditions(Sphere sph, std::vector<Sp
}
}
}

void SphereGammaDistribution::printSubstrate(ostream &out)
{
out << 1e-3 << endl;
for(unsigned i = 0; i < spheres.size(); i++){

out << spheres[i].center[0]*1e3 << " " << spheres[i].center[1]*1e3 << " " << spheres[i].center[2]*1e3 << " "
<< spheres[i].radius*1e3 << endl;
}
}
3 changes: 3 additions & 0 deletions src/spheregammadistribution.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class SphereGammaDistribution : public CylinderGammaDistribution
*/
void createGammaSubstrate();

void printSubstrate(std::ostream& out);


private:

/*!
Expand Down

0 comments on commit 2c2ed25

Please sign in to comment.