Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • mHM mHM
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 51
    • Issues 51
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mhmmhm
  • mHMmHM
  • Merge requests
  • !72

Refactor: Enable pFUnit-tests and refactor cmake workflow

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sebastian Müller requested to merge muellese/mhm:pfunit-cmake-refactor into develop Mar 13, 2021
  • Overview 2
  • Commits 31
  • Pipelines 10
  • Changes 19

This merge refactors the whole cmake workflow:

  • create cmake modules:
    • checkfortranpreprocessor.cmake: check for -fpp or -cpp and add function cpp_definitions
    • compileoptions.cmake: add options for MPI, OpenMP, Lapack and Coverage
    • version.cmake: read version and date from files version.txt and version_date.txt
  • shrink CMakeLists.txt to only compile the executable from mhm_driver.f90
  • add CMakeLists.txt in src/ to compile mhm_lib from all mo_*.f90 files
    • refactor compiler flags (don't alter CMAKE_Fortran_FLAGS globally)
    • safer setting of included and linked paths
  • add tests/ folder in src/ containing pfUnit tests
  • added message about usage of MPI and OpenMP in mhm_driver.f90
  • Refactored Cmake options to have correct type
Edited Mar 15, 2021 by Sebastian Müller
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: pfunit-cmake-refactor