Skip to content

Comments

Feature/add cmake compile install#5

Open
ewhelan wants to merge 5 commits intoromainroehrig:masterfrom
ewhelan:feature/add_cmake_compile_install
Open

Feature/add cmake compile install#5
ewhelan wants to merge 5 commits intoromainroehrig:masterfrom
ewhelan:feature/add_cmake_compile_install

Conversation

@ewhelan
Copy link
Contributor

@ewhelan ewhelan commented Jan 26, 2024

Hi @romainroehrig

This is an update that allows for compilation and installation using CMake. I have updated the README with details. I have tested this on my local server. If you have time, I would appreciate it if you could take a look at these changes and let me know if this breaks things for you.

Instructions on how we have used EMS in HIRLAM are available here: https://hirlam.github.io/HarmonieSystemDocumentation/dev/ForecastModel/SingleColumnModel/MUSC_EMS/

os.symlink(ASCII2FA, 'ascii2fa')
with open('ascii2fa_{0}.log'.format(vert_grid_name), 'w') as log:
p = subprocess.run('ascii2fa', cwd=rep, stderr=subprocess.STDOUT, stdout=log,
p = subprocess.run('./ascii2fa', cwd=rep, stderr=subprocess.STDOUT, stdout=log,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romainroehrig - I am not sure you want this?

# Get the CASES directory
import ems
rep0 = os.path.join(ems._dirEMS,'../data/CASES')
rep0 = os.path.join(ems._dirEMS,'../share/CASES')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romainroehrig - I am pretty sure you do not want this ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant