diff --git a/docs/Scientific_Computing/Supported_Applications/OpenSees.md b/docs/Scientific_Computing/Supported_Applications/OpenSees.md index 258006372..80cfb9c2b 100644 --- a/docs/Scientific_Computing/Supported_Applications/OpenSees.md +++ b/docs/Scientific_Computing/Supported_Applications/OpenSees.md @@ -2,7 +2,9 @@ created_at: '2019-08-15T05:48:41Z' hidden: false position: 42 -tags: [] +tags: +- geo +- earthquake title: OpenSees vote_count: 0 vote_sum: 0 @@ -10,56 +12,33 @@ zendesk_article_id: 360001111156 zendesk_section_id: 360000040076 --- - - -[//]: <> (REMOVE ME IF PAGE VALIDATED) -[//]: <> (vvvvvvvvvvvvvvvvvvvv) -!!! warning - This page has been automatically migrated and may contain formatting errors. -[//]: <> (^^^^^^^^^^^^^^^^^^^^) -[//]: <> (REMOVE ME IF PAGE VALIDATED) - There are three commands with which a OpenSees job can be launched. -- OpenSees - For running a job in serial (single CPU). -- OpenSeesSP - Intended for the single analysis of very large models. -- OpenSeesMP - For advanced parametric studies. +- `OpenSees`: For running a job in serial (single CPU). +- `OpenSeesSP`: Intended for the single analysis of very large models. +- `OpenSeesMP`: For advanced parametric studies. -  More info can be found about running OpenSees in parallel [here](http://opensees.berkeley.edu/OpenSees/parallel/TNParallelProcessing.pdf). - ---- - - - - - - -

Serial

-
-

Single process with a single thread.

-

Usually submitted as part of an array, as in the case of parameter -sweeps.

#!/bin/bash -e
-
-#SBATCH --job-name      OpenSees-Serial
-#SBATCH --time          00:05:00          # Walltime
-#SBATCH --cpus-per-task 1                 # Double if hyperthreading enabled
-#SBATCH --mem           512MB             # total mem
-#SBATCH --hint          nomultithread     # Hyperthreading disabled
-
-module load OpenSees
-
-input="frame.tcl"
-OpenSees ${input}
+=== "SerialJob" +Single *process* with a single *thread*. +Usually submitted as part of an array, as in the case of parameter +sweeps. + ```sl + #!/bin/bash -e + + #SBATCH --job-name OpenSees-Serial + #SBATCH --time 00:05:00 # Walltime + #SBATCH --cpus-per-task 1 # Double if hyperthreading enabled. + #SBATCH --mem 512MB # total mem + #SBATCH --hint nomultithread # Hyperthreading disabled + + module load OpenSees/{{applications.OpenSees.machines.mahuika.versions | last}} + OpenSees "frame.tcl" ## Input from Shell @@ -68,16 +47,12 @@ environment variables. Set in Slurm script: -``` bash +```bash export MY_VARIABLE="Hello World!" ``` Retrieved in Tcl script: -``` sl +```tcl puts $::env(MY_VARIABLE) ``` - -  - -  \ No newline at end of file