Skip to content
Snippets Groups Projects
Commit 0468f81d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

corr err in ftvm

parent 8119632b
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ void NImport::read_tab(string qualif) ...@@ -141,7 +141,7 @@ void NImport::read_tab(string qualif)
} }
if (!horizontal) { if (!horizontal) {
s = PSpec(new CSpec); s = PSpec(new CSpec);
s->z.resize(nz); s->z.resize(nzdat);
for (int iz = 0; iz < nzdat; ++iz) for (int iz = 0; iz < nzdat; ++iz)
s->z[iz] = RObjDbl(new CObjDbl(zdat[iz])); s->z[iz] = RObjDbl(new CObjDbl(zdat[iz]));
} }
......
...@@ -52,6 +52,8 @@ double triv::integrate( ...@@ -52,6 +52,8 @@ double triv::integrate(
case 6: case 6:
rule = GSL_INTEG_GAUSS15; rule = GSL_INTEG_GAUSS15;
break; break;
default:
throw "Impossible case";
} }
// QAG adaptive integration // QAG adaptive integration
gsl_integration_qag(&F, low, hig, epsabs, epsrel, nwork, rule, work, &val, &err); gsl_integration_qag(&F, low, hig, epsabs, epsrel, nwork, rule, work, &val, &err);
......
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