Skip to content

Commit

Permalink
Removes .erb/Ruby code from form.yml, reverts auto_modules_ usage bac…
Browse files Browse the repository at this point in the history
…k to version (#23)
  • Loading branch information
HazelGrant authored Feb 27, 2024
1 parent 7ea6bbe commit 58ea9f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
25 changes: 11 additions & 14 deletions form.yml.erb → form.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<%-
groups = OodSupport::User.new.groups.sort_by(&:id).tap { |groups|
groups.unshift(groups.delete(OodSupport::Process.group))
}.map(&:name).grep(/^P./)
-%>
---
cluster:
- "owens"
form:
- auto_modules_comsol
- version
- auto_accounts
- bc_num_hours
- bc_num_slots
Expand All @@ -16,6 +10,16 @@ form:
- bc_vnc_resolution
- bc_email_on_started
attributes:
version:
widget: select
label: "COMSOL Multiphysics version"
help: "This defines the version of COMSOL Multiphysics you want to load."
options:
- ["6.0", "comsol/6.0"]
- ["5.5", "comsol/5.5"]
- ["5.4", "comsol/5.4"]
- ["5.3a", "comsol/53a"]
- ["5.2a", "comsol/52a"]
num_cores:
widget: "number_field"
label: "Number of cores"
Expand All @@ -28,13 +32,6 @@ attributes:
step: 1
bc_vnc_resolution:
required: true
account:
label: "Project"
widget: select
options:
<%- groups.each do |group| %>
- "<%= group %>"
<%- end %>
node_type:
widget: select
label: "Node type"
Expand Down
2 changes: 1 addition & 1 deletion template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cd "${HOME}"
#

# Load the required environment
module load xalt/latest <%= context.auto_modules_comsol %>
module load xalt/latest <%= context.version %>

# Launch COMSOL Multiphysics
<%- if gpu -%>
Expand Down

0 comments on commit 58ea9f8

Please sign in to comment.