mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-28 03:27:05 +00:00
adjustment for coupling#1
This commit is contained in:
@ -56,8 +56,14 @@ protected:
|
|||||||
|
|
||||||
uniquePtr<interaction> interaction_ = nullptr;
|
uniquePtr<interaction> interaction_ = nullptr;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int32 numDomains_;
|
||||||
|
|
||||||
|
VectorDual<box> domains_;
|
||||||
|
|
||||||
|
Vector<int32Vector_H> parIndexInDomain_;
|
||||||
|
|
||||||
|
|
||||||
auto& Control()
|
auto& Control()
|
||||||
{
|
{
|
||||||
return Control_();
|
return Control_();
|
||||||
@ -102,6 +108,11 @@ public:
|
|||||||
Control_->g().z()};
|
Control_->g().z()};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool inline usingDoulle()const
|
||||||
|
{
|
||||||
|
return pFlow::usingDouble__;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,34 +31,36 @@ namespace pFlow
|
|||||||
#ifdef pFlow_Build_Double
|
#ifdef pFlow_Build_Double
|
||||||
#define useDouble 1
|
#define useDouble 1
|
||||||
inline const char* floatingPointType__ = "double";
|
inline const char* floatingPointType__ = "double";
|
||||||
|
inline const bool usingDouble__ = true;
|
||||||
#else
|
#else
|
||||||
#define useDouble 0
|
#define useDouble 0
|
||||||
inline const char* floatingPointType__ = "float";
|
inline const char* floatingPointType__ = "float";
|
||||||
|
inline const bool usingDouble__ = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// scalars
|
// scalars
|
||||||
#if useDouble
|
#if useDouble
|
||||||
using real = double;
|
using real = double;
|
||||||
#else
|
#else
|
||||||
using real = float;
|
using real = float;
|
||||||
#endif
|
#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 uint16 = unsigned short int ;
|
||||||
|
|
||||||
using uint32 = unsigned int;
|
using uint32 = unsigned int;
|
||||||
|
|
||||||
using label = std::size_t;
|
using label = std::size_t;
|
||||||
|
|
||||||
using word = std::string;
|
using word = std::string;
|
||||||
|
|
||||||
inline
|
inline
|
||||||
auto floatingPointDescription()
|
auto floatingPointDescription()
|
||||||
|
Reference in New Issue
Block a user