Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install endpoint for standard fmu-config usage #32

Open
berland opened this issue Dec 3, 2020 · 0 comments
Open

Install endpoint for standard fmu-config usage #32

berland opened this issue Dec 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@berland
Copy link
Collaborator

berland commented Dec 3, 2020

The shell script in Drogon represents standard usage of fmu-config. This should be represented as an endpoint from this package, possibly also as an ERT forward model.

global_variables_update.sh:

#!/bin/bash
#
# Run the global configuration for RMS, both making IPL (not in Drogon)...
# and YAML versions from a common global config
#
# Author: Cersei Lannister made this
#=======================================================================================

MASTER="../../fmuconfig/input/global_master_config.yml"    # all updates should be done in this file
OUTFOLDER="../../fmuconfig/output"                         # location of result files
ROOTNAME="global_variables"                   # root name of result files

rm -f ${OUTFOLDER}/*.tmpl ${OUTFOLDER}/*.yml ${OUTFOLDER}/*.txt  # be careful with this!

# run command for creating YAML version (+ ert tmpl version; yml.tmpl)
fmuconfig $MASTER --rootname $ROOTNAME --mode yml --destination $OUTFOLDER \
          --template $OUTFOLDER

# run command for creating IPL version if needed (+ ert tmpl version; ipl.tmpl)
fmuconfig $MASTER --rootname $ROOTNAME --mode ipl --destination $OUTFOLDER \
          --template $OUTFOLDER --tool rms

@berland berland added the enhancement New feature or request label Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant