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

Enable conditional compilation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sebastian Müller requested to merge make_netcdf_optional into main Jun 21, 2022
  • Overview 0
  • Commits 4
  • Pipelines 6
  • Changes 5

Closes #36 (closed)

With this MR we added the capability of conditional compilation. Two cmake options were added, that are enabled by default:

  1. -DFORCES_WITH_OPTIMIZATION=[ON|OFF]: include all modules used for optimization (sce, mcmc, anneal, dds, errormeasures, likelihood, opt_functions, cost, optimization_types, optimization_utils)
  2. -DFORCES_WITH_NETCDF=[ON|OFF]: include all modules using NetCDF (netcdf, ncwrite, ncread)
    • Here, mo_mcmc throws an error if you want to have a tmp_file written out.
    • This option can be used to drop the NetCDF dependency, if netcdf io is not needed for your program
Edited Jun 22, 2022 by Sebastian Müller
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: make_netcdf_optional