adjustment for coupling#1
This commit is contained in:
parent
5287af96eb
commit
371c491d2b
|
@ -56,8 +56,14 @@ protected:
|
|||
|
||||
uniquePtr<interaction> interaction_ = nullptr;
|
||||
|
||||
|
||||
|
||||
int32 numDomains_;
|
||||
|
||||
VectorDual<box> domains_;
|
||||
|
||||
Vector<int32Vector_H> parIndexInDomain_;
|
||||
|
||||
|
||||
auto& Control()
|
||||
{
|
||||
return Control_();
|
||||
|
@ -102,6 +108,11 @@ public:
|
|||
Control_->g().z()};
|
||||
}
|
||||
|
||||
bool inline usingDoulle()const
|
||||
{
|
||||
return pFlow::usingDouble__;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -31,34 +31,36 @@ namespace pFlow
|
|||
#ifdef pFlow_Build_Double
|
||||
#define useDouble 1
|
||||
inline const char* floatingPointType__ = "double";
|
||||
inline const bool usingDouble__ = true;
|
||||
#else
|
||||
#define useDouble 0
|
||||
inline const char* floatingPointType__ = "float";
|
||||
inline const bool usingDouble__ = false;
|
||||
#endif
|
||||
|
||||
|
||||
// scalars
|
||||
#if useDouble
|
||||
using real = double;
|
||||
using real = double;
|
||||
#else
|
||||
using real = float;
|
||||
using real = float;
|
||||
#endif
|
||||
|
||||
using int8 = signed char;
|
||||
using int8 = signed char;
|
||||
|
||||
using int16 = short int;
|
||||
using int16 = short int;
|
||||
|
||||
using int32 = int;
|
||||
using int32 = int;
|
||||
|
||||
using int64 = long long int;
|
||||
using int64 = long long int;
|
||||
|
||||
using uint16 = unsigned short int ;
|
||||
|
||||
using uint32 = unsigned int;
|
||||
using uint32 = unsigned int;
|
||||
|
||||
using label = std::size_t;
|
||||
|
||||
using word = std::string;
|
||||
using word = std::string;
|
||||
|
||||
inline
|
||||
auto floatingPointDescription()
|
||||
|
|
Loading…
Reference in New Issue