Skip to content
Snippets Groups Projects
Commit ad02a5ef authored by Johannes Gäßler's avatar Johannes Gäßler
Browse files

Fix sqrtlog10 being hardcoded for NodeDensity

parent e98edf71
Branches
Tags
No related merge requests found
...@@ -184,7 +184,33 @@ int fastNLOInterpolBase::FindLargestPossibleNode(double x, bool canExtend = fals ...@@ -184,7 +184,33 @@ int fastNLOInterpolBase::FindLargestPossibleNode(double x, bool canExtend = fals
while ( x < fgrid[1] ) { while ( x < fgrid[1] ) {
double newxH = fHgrid[0] - (fHgrid[1] - fHgrid[0]); double newxH = fHgrid[0] - (fHgrid[1] - fHgrid[0]);
fHgrid.insert(fHgrid.begin(), newxH); fHgrid.insert(fHgrid.begin(), newxH);
fgrid.insert(fgrid.begin(), Function_sqrtlog10_inv(newxH));
switch (fdm) {
case fastNLOGrid::kLinear:
fgrid.insert(fgrid.begin(), newxH);
break;
case fastNLOGrid::kLogLog025:
fgrid.insert(fgrid.begin(), Function_loglog025_inv(newxH));
break;
case fastNLOGrid::kLog10:
fgrid.insert(fgrid.begin(), Function_log10_inv(newxH));
break;
case fastNLOGrid::kSqrtLog10:
fgrid.insert(fgrid.begin(), Function_sqrtlog10_inv(newxH));
break;
case fastNLOGrid::kLogLog:
fgrid.insert(fgrid.begin(), Function_loglog_inv(newxH));
break;
case fastNLOGrid::k3rdrtLog10:
fgrid.insert(fgrid.begin(), Function_3rdrtlog10_inv(newxH));
break;
case fastNLOGrid::k4thrtLog10:
fgrid.insert(fgrid.begin(), Function_4thrtlog10_inv(newxH));
break;
default:
error["FindLargestPossibleNode"]<<"Unknown grid type."<<endl;
}
debug["FindLargestPossibleNode"]<<"Value is smaller than smallest node. Extending grid. x="<<x<<endl; debug["FindLargestPossibleNode"]<<"Value is smaller than smallest node. Extending grid. x="<<x<<endl;
gridExtended = true; gridExtended = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment