Skip to content
Snippets Groups Projects
Commit d115fc8d authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Allow to switch vectorMode for Adol-C on and off

parent 0d828a55
Branches
Tags
No related merge requests found
......@@ -51,18 +51,18 @@ private:
public:
AdolcMaterial() {};
AdolcMaterial(const Basis& basis, const LocalEnergy& localEnergy) :
AdolcMaterial(const Basis& basis, const LocalEnergy& localEnergy, bool vectorMode=true) :
Base(basis),
localEnergy_(&localEnergy),
localLinearization_(localEnergy),
localHessian_(localEnergy)
localHessian_(localEnergy,vectorMode)
{}
void setup(const Basis& basis, const LocalEnergy& localEnergy)
void setup(const Basis& basis, const LocalEnergy& localEnergy, bool vectorMode=true)
{
localEnergy_ = &localEnergy;
localLinearization_ = AdolcLinearization(localEnergy);
localHessian_ = AdolcHessian(localEnergy);
localHessian_ = AdolcHessian(localEnergy,vectorMode);
this->basis_ = &basis;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment