mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Readjust whitespace to original conventions.
This commit is contained in:
parent
e2d8b77ec5
commit
134b9b1a7f
13
AutoDiff.hpp
13
AutoDiff.hpp
@ -41,19 +41,21 @@
|
|||||||
namespace AutoDiff {
|
namespace AutoDiff {
|
||||||
template <typename Scalar>
|
template <typename Scalar>
|
||||||
class Forward {
|
class Forward {
|
||||||
private:
|
|
||||||
public:
|
public:
|
||||||
static Forward constant(const Scalar x)
|
static Forward
|
||||||
|
constant(const Scalar x)
|
||||||
{
|
{
|
||||||
return Forward(x, Scalar(0));
|
return Forward(x, Scalar(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
static Forward variable(const Scalar x)
|
static Forward
|
||||||
|
variable(const Scalar x)
|
||||||
{
|
{
|
||||||
return Forward(x, Scalar(1));
|
return Forward(x, Scalar(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
static Forward function(const Scalar x, const Scalar dx)
|
static Forward
|
||||||
|
function(const Scalar x, const Scalar dx)
|
||||||
{
|
{
|
||||||
return Forward(x, dx);
|
return Forward(x, dx);
|
||||||
}
|
}
|
||||||
@ -128,7 +130,8 @@ namespace AutoDiff {
|
|||||||
Forward(const Scalar x, const Scalar dx)
|
Forward(const Scalar x, const Scalar dx)
|
||||||
: val_(x), der_(dx)
|
: val_(x), der_(dx)
|
||||||
{}
|
{}
|
||||||
Scalar val_ ;
|
|
||||||
|
Scalar val_;
|
||||||
Scalar der_;
|
Scalar der_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user