Skip to content

Commit

Permalink
pretty up normalization constant in GaussianUserObject, closes idahol…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessecarterMOOSE committed Oct 4, 2016
1 parent c49158d commit d7965e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/userobjects/GaussianUserObject.C
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ GaussianUserObject::GaussianUserObject(const InputParameters & parameters) :
{
// normalization constant so integral over domain (theoretically) equals 1
unsigned int dim = _mesh.dimension();
_norm = 1.0/(pow(_sigma,dim)*pow(pow(2.0*pi,dim),0.5));
_norm = 1.0/std::pow(_sigma*std::sqrt(2.0*libMesh::pi), Real(dim));
}

GaussianUserObject::~GaussianUserObject()
Expand Down

0 comments on commit d7965e8

Please sign in to comment.