Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 384
    • Issues 384
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1663

Closed
Open
Created Apr 03, 2020 by Henning Scheufler@Henning86

build commit in solver/application log

Functionality to add

In the development process of a library, one will encounter plenty of bugs. In that case it is extremely useful to know which version of the library was used to produce some results.

An option to achieve this would be to store the custom library commit hash and name in the log file

e.g.

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  com                                   |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 00425fe658-20200403 OPENFOAM=2002 patch=200316
Custom Build : <commit hash>-date libraryName=<name of the library> // proposed
Arch   : "LSB;label=32;scalar=64"
Exec   : interIsoFoam -parallel

Target audience

Proposal

Print the custom commit in the log file of the application

What does success look like, and how can we measure that?

Links / references

Funding

Assignee
Assign to
Time tracking