Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit 5c74a02

Browse files
author
David Blom
committed
Merge pull request #125 from davidsblom/develop
Include git version in output of fsiFoam solver
2 parents 9244a59 + 49748b6 commit 5c74a02

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

applications/solvers/fsi/fsiFoam/fsiFoam.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <memory>
1010
#include <yaml-cpp/yaml.h>
1111

12+
#include "version.H"
1213
#include "ASMILS.H"
1314
#include "AggressiveSpaceMapping.H"
1415
#include "AitkenPostProcessing.H"
@@ -160,6 +161,8 @@ int main(
160161
FatalError.exit();
161162
}
162163

164+
Info << nl << "FOAM-FSI build: " << word( FOAMFSIbuild ) << nl << endl;
165+
163166
std::shared_ptr<Time> runTime( new Time
164167
(
165168
Time::controlDictName,

src/fsi/Make/files

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ AdaptiveTimeStepper.C
2525
QuadratureRules.C
2626
PIES.C
2727
SDCFsiSolver.C
28+
version.Cver
2829

2930
fluidSolvers/CoupledFluidSolver.C
3031
fluidSolvers/FluidSolver.C

src/fsi/version.Cver

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
#include "version.H"
3+
4+
const char* const FOAMFSIbuild = "BUILD_STRING";

src/fsi/version.H

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#ifndef VERSION_H
3+
#define VERSION_H
4+
5+
extern const char * const FOAMFSIbuild;
6+
7+
#endif /* VERSION_H */

0 commit comments

Comments
 (0)