Commit 629523f8 authored by Laurent Belcour's avatar Laurent Belcour

Correction of a bug in the bootstrap method of compounds.

Changing the bootstrap of fresnel to be in the middle of the domain.
parent 1a80962c
......@@ -517,16 +517,18 @@ void compound_function::bootstrap(const ::data* d, const arguments& args)
std::cout << "<<DEBUG>> Unable to load second function of product, regular bootstraping" << std::endl;
}
}
// If the function cannot be loaded, put the input stream
// in the previous state and bootstrap normaly this function.
if(!fs[i]->load(file))
{
file.seekg(pos);
else
{
// If the function cannot be loaded, put the input stream
// in the previous state and bootstrap normaly this function.
if(!fs[i]->load(file))
{
file.seekg(pos);
// Bootstrap the function as if it was not loaded
fs[i]->bootstrap(d, fs_args[i]);
// Bootstrap the function as if it was not loaded
fs[i]->bootstrap(d, fs_args[i]);
std::cout << "<<DEBUG>> Unable to load one function of compound, regular bootstraping" << std::endl;
}
}
}
}
......
......@@ -181,5 +181,5 @@ vec schlick::parametersJacobian(const vec& x) const
void schlick::bootstrap(const data* d, const arguments& args)
{
for(int i=0; i<dimY(); ++i) { R[i] = 1.0; }
for(int i=0; i<dimY(); ++i) { R[i] = 0.5; }
}
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