Skip to content
Snippets Groups Projects
Commit 45d819a4 authored by Bertram Kopf's avatar Bertram Kopf
Browse files

few modifications to make the compiler happy

parent 52b5a9f3
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,8 @@ double BlattWeisskopf::operator()(double p) const
double BlattWeisskopf::compute(double p) const
{
double result=1.;
if(p < 0) {
std::cout << "Momentum " << p << " negative in form factor calculation" << std::endl;
......@@ -74,18 +76,19 @@ double BlattWeisskopf::compute(double p) const
// }
// }
if(0 == _LL) return 1.;
if(0 == _LL) result=1.;
else
if(1 == _LL) return sqrt(x/(1.0+x));
if(1 == _LL) result=sqrt(x/(1.0+x));
else
if(2 == _LL) return sqrt((13.*x*x)/((x-3.)*(x-3.)+9.*x));
if(2 == _LL) result=sqrt((13.*x*x)/((x-3.)*(x-3.)+9.*x));
else
if(3 == _LL) return sqrt((277.*x*x*x)/(x*(x-15.)*(x-15.)+9.*(2.*x-5)*(2.*x-5)));
if(3 == _LL) result=sqrt((277.*x*x*x)/(x*(x-15.)*(x-15.)+9.*(2.*x-5)*(2.*x-5)));
else {
std::cout << "Angular momentum " << _LL << " not implemented" << std::endl;
assert(0);
}
}
return result;
}
......@@ -57,6 +57,7 @@ protected:
/// Assert that @a tbase and @a this have the same rank
inline bool RankAssert(const Tensor_Base &__tbase) {
assert(this->_rank == __tbase._rank);
return true;
}
public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment