diff --git a/applications/test/00-dummy/dummy/dummyLib.C b/applications/test/00-dummy/dummy/dummyLib.C index 383c431de51f8fa823ec98d8fcc96611c52171af..9963595c01953ce3c438dcd79239ad9f3caf5cda 100644 --- a/applications/test/00-dummy/dummy/dummyLib.C +++ b/applications/test/00-dummy/dummy/dummyLib.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2018 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,6 +30,9 @@ License #if defined WM_SP # define PRECISION "SP" # define SCALAR_SIZE (8*sizeof(float)) +#elif defined(WM_SPDP) +# define PRECISION "SPDP" +# define SCALAR_SIZE (8*sizeof(float)) #elif defined WM_DP # define PRECISION "DP" # define SCALAR_SIZE (8*sizeof(double)) @@ -38,9 +41,23 @@ License # define SCALAR_SIZE (8*sizeof(long double)) #endif +// Test additional exported symbols +#ifdef _WIN32 + #define defineWindowsLibEntryPoint(libName) \ + extern "C" void lib_##libName##_entry_point() {} +#else + #define defineWindowsLibEntryPoint(libName) /* Nothing */ +#endif + // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // +// The 'extern C' export is independent of namespace +namespace Foam +{ + defineWindowsLibEntryPoint(dummyLib); +} + const std::string Foam::Detail::dummyLib::arch(WM_ARCH); const std::string Foam::Detail::dummyLib::compiler(WM_COMPILER); diff --git a/src/OpenFOAM/db/IOobject/IOobject.C b/src/OpenFOAM/db/IOobject/IOobject.C index 5842fc721846ba0587f9893039140555e19aa0ab..8ea24003b2300e26e971f67b4613cb987bf46a49 100644 --- a/src/OpenFOAM/db/IOobject/IOobject.C +++ b/src/OpenFOAM/db/IOobject/IOobject.C @@ -160,10 +160,10 @@ bool Foam::IOobject::fileNameComponents #endif ) { - // Absolute path (starts with '/') + // Absolute path (starts with '/' or 'd:/') // => no local - instance = path.substr(first, last); + instance = path.substr(0, last); const std::string ending = path.substr(last+1); nameLen = ending.size(); // The raw length of name diff --git a/src/meshTools/edgeMesh/edgeMeshFormats/edgeMesh/edgeMeshFormat.C b/src/meshTools/edgeMesh/edgeMeshFormats/edgeMesh/edgeMeshFormat.C index 8effdf0309eea7983edf16596d3861cfdcc9dbac..a5982d638902b5ee49846ce13636478bdfa42b9a 100644 --- a/src/meshTools/edgeMesh/edgeMeshFormats/edgeMesh/edgeMeshFormat.C +++ b/src/meshTools/edgeMesh/edgeMeshFormats/edgeMesh/edgeMeshFormat.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | + \\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2017 OpenFOAM Foundation @@ -52,10 +52,6 @@ bool Foam::fileFormats::edgeMeshFormat::read { clear(); - fileName dir = filename.path(); - fileName caseName = dir.name(); - fileName rootPath = dir.path(); - // Construct dummy time to use as an objectRegistry Time dummyTime ( @@ -117,10 +113,7 @@ bool Foam::fileFormats::edgeMeshFormat::read << exit(FatalError); } - // read points: is >> pointLst; - - // read edges: is >> edgeLst; return true; diff --git a/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMeshFormats/extendedEdgeMeshFormat/extendedEdgeMeshFormat.C b/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMeshFormats/extendedEdgeMeshFormat/extendedEdgeMeshFormat.C index fb52a8a00c246d9b5a17ca922e8663a152fa3e6f..9070943bc23b85251b834fa25031f22fd21e12c6 100644 --- a/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMeshFormats/extendedEdgeMeshFormat/extendedEdgeMeshFormat.C +++ b/src/meshTools/edgeMesh/extendedEdgeMesh/extendedEdgeMeshFormats/extendedEdgeMeshFormat/extendedEdgeMeshFormat.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | + \\ / A nd | Copyright (C) 2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2013-2017 OpenFOAM Foundation @@ -50,10 +50,6 @@ bool Foam::fileFormats::extendedEdgeMeshFormat::read { clear(); - fileName dir = filename.path(); - fileName caseName = dir.name(); - fileName rootPath = dir.path(); - // Construct dummy time to use as an objectRegistry Time dummyTime (