Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • G genetic_algorithm_pisces1d
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • 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
  • Climate Prediction
  • genetic_algorithm_pisces1d
  • Wiki
  • Pisces1d Genetic Algorithm Usage

Pisces1d Genetic Algorithm Usage · Changes

Page history
Update Pisces1d Genetic Algorithm Usage authored Feb 03, 2021 by Marcus Falls's avatar Marcus Falls
Hide whitespace changes
Inline Side-by-side
Pisces1d-Genetic-Algorithm-Usage.md
View page @ 8d94f997
...@@ -20,19 +20,21 @@ autosubmit expid -H marenostrum4 -d Description ...@@ -20,19 +20,21 @@ autosubmit expid -H marenostrum4 -d Description
``` ```
and replace the conf files there with the ones [here](https://earth.bsc.es/gitlab/mfalls/genetic_algorithm_pisces1d/tree/master/conf). and replace the conf files there with the ones [here](https://earth.bsc.es/gitlab/mfalls/genetic_algorithm_pisces1d/tree/master/conf).
Either way, you will obtain an experiment id of the form axxx.
From here, you can either prepare the scripts via your local machine or via git. From here, you can either prepare the scripts via your local machine or via git.
## 2.1 Git (Recommended) ## 2.1 Git (Recommended)
Open expdef_xxxx.conf and Open expdef_axxx.conf and
1. change PROJECT_TYPE from local to git 1. change PROJECT_TYPE from local to git
2. change PROJECT_ORIGIN (line 43) to https://earth.bsc.es/gitlab/cp/genetic_algorithm_pisces1d.git 2. change PROJECT_ORIGIN (line 43) to https://earth.bsc.es/gitlab/cp/genetic_algorithm_pisces1d.git
3. change PROJECT_BRANCH to master 3. change PROJECT_BRANCH to master
4. Edit MEMBERS. This corresponds to the number of generations that you want the genetic algorithm to run for. This should always be of the form `fc[0000-xxxx]` (fc + 4 digits). 4. Edit MEMBERS. This corresponds to the number of generations that you want the genetic algorithm to run for. This should always be of the form `fc[0000-####]` (fc + 4 digits).
5. Edit NUMCHUNKS. This corresponds to the number of sets of parameters of each generation. Minimum 2, maximum 10,000. 5. Edit NUMCHUNKS. This corresponds to the number of sets of parameters of each generation. Minimum 2, maximum 10,000.
then autosubmit refresh xxxx then autosubmit refresh axxx
Finally, edit the following configuration files: Finally, edit the following configuration files:
* platforms.conf: Under marenostrum4, change USER to your HPC username (bsc32xxx). * platforms.conf: Under marenostrum4, change USER to your HPC username (bsc32xxx).
...@@ -45,7 +47,7 @@ Finally, edit the following configuration files: ...@@ -45,7 +47,7 @@ Finally, edit the following configuration files:
* platforms.conf: Under marenostrum4, change USER to your HPC username (bsc32xxx). * platforms.conf: Under marenostrum4, change USER to your HPC username (bsc32xxx).
* expdef.conf: * expdef.conf:
1. Edit MEMBERS. This corresponds to the number of generations that you want the genetic algorithm to run for. This should always be of the form `fc[0000-xxxx]` (fc + 4 digits). 1. Edit MEMBERS. This corresponds to the number of generations that you want the genetic algorithm to run for. This should always be of the form `fc[0000-####]` (fc + 4 digits).
2. Edit NUMCHUNKS. This corresponds to the number of sets of parameters of each generation. Minimum 2, maximum 10,000. 2. Edit NUMCHUNKS. This corresponds to the number of sets of parameters of each generation. Minimum 2, maximum 10,000.
3. Ensure that PROJECT_TYPE = local 3. Ensure that PROJECT_TYPE = local
4. Under local, change PROJECT_PATH to the directory where you downloaded the workflow scripts. 4. Under local, change PROJECT_PATH to the directory where you downloaded the workflow scripts.
...@@ -58,7 +60,7 @@ Here is the full list of input files that you need: ...@@ -58,7 +60,7 @@ Here is the full list of input files that you need:
* The NEMO netcdf input files. Both 3x3 latxlon and full global files will work okay here. See step 1: Crop below * The NEMO netcdf input files. Both 3x3 latxlon and full global files will work okay here. See step 1: Crop below
* A file called variables.csv, which contains the information on the parameters that you want to investigate. Any numerical parameter that is found in namelist_pisces_ref can be added here. * A file called variables.csv, which contains the information on the parameters that you want to investigate. Any numerical parameter that is found in namelist_pisces_ref can be added here.
Once you have these, edit the variables and paths at the start of each script on the workflow: Once you have these, edit the variables and paths at the start of each script in axxx/proj/autosubmit/templates:
1. Crop: If your input is already a 3x3 dimension, set crop=False. If working with a full file, set crop=True and set LAT and LON accordingly. 1. Crop: If your input is already a 3x3 dimension, set crop=False. If working with a full file, set crop=True and set LAT and LON accordingly.
2. SCRHOME: Your scratch home directory. 2. SCRHOME: Your scratch home directory.
......
Clone repository
  • Pisces1d Genetic Algorithm Usage
  • Home