MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / CVComputeEtaqm1

Function CVComputeEtaqm1

externalpackages/PVODE/source/cvode.cpp:2300–2310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2298******************************************************************/
2299
2300static real CVComputeEtaqm1(CVodeMem cv_mem)
2301{
2302 real etaqm1, ddn;
2303
2304 etaqm1 = ZERO;
2305 if (q > 1) {
2306 ddn = N_VWrmsNorm(zn[q], ewt) / tq[1];
2307 etaqm1 = ONE/(RPowerR(BIAS1*ddn, ONE/q) + ADDON);
2308 }
2309 return(etaqm1);
2310}
2311
2312/*************** CVComputeEtaqp1 **********************************
2313

Callers 1

CVPrepareNextStepFunction · 0.85

Calls 2

N_VWrmsNormFunction · 0.85
RPowerRFunction · 0.85

Tested by

no test coverage detected