Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org starting 2 March 2020 at approximately 8am MST. It is expected to take around 10 minutes and will include a short period of downtime towards the end of the maintenance window. Please direct any comments, concerns, or questions to computing-help@igwn.org.

Commit f1e31af3 authored by John Douglas Veitch's avatar John Douglas Veitch

Fix cpu_time checkpoint variable name

parent e677d8d3
......@@ -174,7 +174,7 @@ static int ReadNSCheckPointH5(char *filename, LALInferenceRunState *runState, NS
double execution_time = 0.0;
if ( ( execution_time = XLALH5FileQueryScalarAttributeValue(&execution_time, group, "execution_time") ) )
{
LALInferenceAddVariable(runState->algorithmParams, "execution_time", &execution_time, LALINFERENCE_REAL8_t, LALINFERENCE_PARAM_OUTPUT);
LALInferenceAddVariable(runState->algorithmParams, "cpu_time", &execution_time, LALINFERENCE_REAL8_t, LALINFERENCE_PARAM_OUTPUT);
}
XLALH5FileClose(group);
......@@ -795,7 +795,7 @@ void LALInferenceNestedSamplingAlgorithmInit(LALInferenceRunState *runState)
LALINFERENCE_PARAM_FIXED);
}
double zero=0.0;
LALInferenceAddVariable(runState->algorithmParams,"execution_time",&zero,LALINFERENCE_REAL8_t, LALINFERENCE_PARAM_OUTPUT);
LALInferenceAddVariable(runState->algorithmParams,"cpu_time",&zero,LALINFERENCE_REAL8_t, LALINFERENCE_PARAM_OUTPUT);
return;
......@@ -1712,7 +1712,7 @@ INT4 LALInferenceNestedSamplingSloppySample(LALInferenceRunState *runState)
}
else
{
nmcmc_exact = (1.0 - 1.0/tau)*nmcmc_exact + (safety/tau)*(2.0/accept_rate - 1.0);
nmcmc_exact = (1.0 - 1.0/tau)*nmcmc_exact + (safety/tau)*(2.0/sub_accept_rate - 1.0);
}
LALInferenceSetINT4Variable(runState->algorithmParams, "Nmcmc", (INT4) nmcmc_exact);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment