Porting: Clean up of initialisation of static data, casting and comparison with enum, Mac OSX
This commit is contained in:
parent
267fa0eba8
commit
b71851619f
3 changed files with 10 additions and 4 deletions
|
@ -326,7 +326,7 @@ void Foam::sigFpe::set(const bool verbose)
|
||||||
{
|
{
|
||||||
vm_protect(
|
vm_protect(
|
||||||
mach_task_self(),
|
mach_task_self(),
|
||||||
(uintptr_t)zone,
|
reinterpret_cast<uintptr_t>(zone),
|
||||||
sizeof(malloc_zone_t),
|
sizeof(malloc_zone_t),
|
||||||
0,
|
0,
|
||||||
VM_PROT_READ | VM_PROT_WRITE
|
VM_PROT_READ | VM_PROT_WRITE
|
||||||
|
@ -338,7 +338,7 @@ void Foam::sigFpe::set(const bool verbose)
|
||||||
{
|
{
|
||||||
vm_protect(
|
vm_protect(
|
||||||
mach_task_self(),
|
mach_task_self(),
|
||||||
(uintptr_t)zone,
|
reinterpret_cast<uintptr_t>(zone),
|
||||||
sizeof(malloc_zone_t),
|
sizeof(malloc_zone_t),
|
||||||
0,
|
0,
|
||||||
VM_PROT_READ
|
VM_PROT_READ
|
||||||
|
|
|
@ -23,9 +23,15 @@ License
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "NamedEnum.H"
|
|
||||||
#include "stringList.H"
|
#include "stringList.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
|
template<class Enum, int nEnum>
|
||||||
|
const char* Foam::NamedEnum<Enum, nEnum>::names[nEnum];
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Enum, int nEnum>
|
template<class Enum, int nEnum>
|
||||||
|
|
|
@ -392,7 +392,7 @@ void Foam::chemkinReader::addPressureDependentReaction
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if (fofType < 4)
|
if (fofType < unknownFallOffFunctionType)
|
||||||
{
|
{
|
||||||
FatalErrorIn("chemkinReader::addPressureDependentReaction")
|
FatalErrorIn("chemkinReader::addPressureDependentReaction")
|
||||||
<< "Fall-off function type "
|
<< "Fall-off function type "
|
||||||
|
|
Reference in a new issue