Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63245279
driver.inl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 18, 18:50
Size
609 B
Mime Type
text/x-c++
Expires
Mon, May 20, 18:50 (2 d)
Engine
blob
Format
Raw Data
Handle
17749821
Attached To
rSPECMICP SpecMiCP / ReactMiCP
driver.inl
View Options
#include "driver.hpp" // syntaxic coloration only
namespace specmicp {
namespace dfpmsolver {
template <class Program, class Options, class Performance>
scalar_t Driver<Program, Options, Performance>::is_step_too_long(Vector &update)
{
double steplength = update.norm();
if (steplength > get_options().maximum_step_length)
{
get_perfs().maximum_step_taken = true;
update = get_options().maximum_step_length / steplength * update;
steplength = get_options().maximum_step_length;
}
return steplength;
}
} // end namespace dfpmsolver
} // end namespace specmicp
Event Timeline
Log In to Comment