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

How exactly are file arguments passed to the executables? #8

Closed
GeigerJ2 opened this issue Jun 6, 2024 · 3 comments
Closed

How exactly are file arguments passed to the executables? #8

GeigerJ2 opened this issue Jun 6, 2024 · 3 comments

Comments

@GeigerJ2
Copy link
Collaborator

GeigerJ2 commented Jun 6, 2024

Consider the attached simplified workflow, in which the init cycle and only one ICON are being executed:
How are the actual file references passed around? For instance, in the call to the ICON executable, how are the locations of "icon input" and "grid file" passed to ICON? As positional parameters or via option flags (--grid-file <path_to_gridfile>). For further development of the AiiDA-powered runner, it would be very beneficial for us, if we could see how one would run the workflow without any workflow manager, by calling the executables / scripts manually, modifying file locations, etc.

Pinging @agoscinski and @leclairm.

image

@leclairm
Copy link
Contributor

leclairm commented Jun 6, 2024

input location has to be put in a namelist. If a rel_path is provided in the config yaml file, it should replace what is in the namelist, otherwise, use the locations provided in the namelist. Actually the path to the namelist should probably be provided as a relative path to the config file in the task description under runtime, stg like that.
To handle namelists, I'll use the f90nml package.

@GeigerJ2
Copy link
Collaborator Author

GeigerJ2 commented Jun 7, 2024

So if I understand correctly, everything, including paths to files, will be put in one input file? How would one run ICON from the command line? Just:

icon <namelist_file>

Or are there additional command-line options?

@agoscinski
Copy link
Collaborator

In a meeting we clarified that the namelist is assumed to be in the same directory with a certain name. The aiida-icon plugin will take care of it (see calcjob input port). In our part of the code one has to only specify the name through our plugin interface (which we still need to decide how to do, here is the draft PR #20, but this is outside of the issue)

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

No branches or pull requests

3 participants