Commit 92fe3177 authored by steffen.schotthoefer's avatar steffen.schotthoefer
Browse files

small bug fixes. doubled introduced options

parent 54c8a262
Pipeline #114941 failed with stage
in 13 minutes and 31 seconds
......@@ -249,7 +249,6 @@ void Config::SetConfigOptions() {
// Entropy related options
/*! @brief Entropy Functional \n DESCRIPTION: Entropy functional used for the MN_Solver \n DEFAULT QUADRTATIC @ingroup Config. */
AddEnumOption( "ENTROPY_FUNCTIONAL", _entropyName, Entropy_Map, QUADRATIC );
AddEnumOption( "ENTROPY_FUNCTIONAL", _entropyName, Entropy_Map, MAXWELL_BOLTZMANN );
/*! @brief Optimizer Name \n DESCRIPTION: Optimizer used to determine the minimal Entropy reconstruction \n DEFAULT NEWTON \ingroup Config */
AddEnumOption( "ENTROPY_OPTIMIZER", _entropyOptimizerName, Optimizer_Map, NEWTON );
......
......@@ -8,12 +8,11 @@
#include "toolboxes/errormessages.h"
MLOptimizer::MLOptimizer( Config* settings ) : OptimizerBase( settings ) {
// test
// Test
initialize_python();
// initialize network
std::string moduleName = "callNN";
std::string moduleName = "callNN_MK3";
_pModule = PyImport_ImportModule( moduleName.c_str() );
if( !_pModule ) {
......
......@@ -74,10 +74,6 @@ double LineSource::HelperRho_ptc2( double R, double t ) {
// Compute the integralpart with midpoint rule
result = exp( -t ) / ( 32 * M_PI * M_PI * R ) * ( 1 - gamma * gamma ) * HelperIntRho_ptc2( t, gamma );
}
if( __isnan( result ) ) {
double iNan = 0.0;
}
return result;
}
......
Supports Markdown
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