Skip to content

Commit

Permalink
Removed unused statement and minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Rodgers committed Jul 24, 2018
1 parent 71ae229 commit 5f24de2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions submit.yml.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<%-
num_nodes = bc_num_slots.blank? ? 1 : bc_num_slots.to_i
num_cpus_per_node = 28
num_cpus_ansys_wont_use = 4
num_cpus_for_free = 4
number_cpus_available = (num_nodes * num_cpus_per_node) - num_cpus_ansys_wont_use
ansys_par_request = (reserve_parallel_licenses.to_i == 1) ? "\%ansyspar+#{number_cpus_available}" : ""
num_cpus_available = (num_nodes * num_cpus_per_node) - num_cpus_for_free
ansys_par_request = (reserve_parallel_licenses.to_i == 1) ? "\%ansyspar+#{num_cpus_available}" : ""
software_request = "ansys+1" + ansys_par_request
-%>
---
Expand Down

0 comments on commit 5f24de2

Please sign in to comment.