-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra TemplateCodeInfo class to hold codeinfo for JobTemplate
In the current design, the code_info of calc_job is read from the code setup and plugin then pass to the job template to create the bash script. However, job template needs more flexibility to control the different part of script runline where currently all the part - exec_name from code uuid, - code_info.cmdline_params, - mpi parameters from computer setting are stacked together to the job template's code_info. In this PR, the class `TemplateCodeInfo` is created to handle the elements, where the `code_uuid` and `withmpi` fields are not used in job script generation. The code_info of JobTemplate and of `CalcJob` are decoupled from each other and lead to more flexibility.
- Loading branch information
Showing
8 changed files
with
163 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.