-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #4
- Loading branch information
Jeremy Nicklas
committed
Mar 21, 2018
1 parent
79cb3e8
commit 5d2baae
Showing
9 changed files
with
115 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
<%- | ||
num_nodes = bc_num_slots.blank? ? 1 : bc_num_slots.to_i | ||
-%> | ||
--- | ||
batch_connect: | ||
template: vnc | ||
|
||
template: "vnc" | ||
script: | ||
job_environment: | ||
<%- unless version.blank? -%> | ||
COMSOL_MODULE: "<%= version %>" | ||
<%- end -%> | ||
<%- if node_type.include? "vis" -%> | ||
ENABLE_VIS: "1" | ||
<%- end -%> | ||
native: | ||
resources: | ||
nodes: "<%= bc_num_slots %><%= node_type %>" | ||
nodes: "<%= num_nodes %><%= node_type %>" | ||
software: "comsolscript" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Export the module function if it exists | ||
[[ $(type -t module) == "function" ]] && export -f module |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
session.configVersion: 13 | ||
session.screen0.toolbar.widthPercent: 60 | ||
session.screen0.toolbar.tools: prevworkspace, workspacename, nextworkspace, iconbar, systemtray, prevwindow, nextwindow, clock | ||
session.menuFile: <%= session.staged_root.join("fluxbox", "menu") %> | ||
session.keyFile: <%= session.staged_root.join("fluxbox", "keys") %> | ||
session.styleOverlay: <%= session.staged_root.join("fluxbox", "overlay") %> |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/env bash | ||
|
||
<%- gpu = context.node_type.include?("vis") -%> | ||
|
||
# Clean the environment | ||
module purge | ||
|
||
# Set working directory to home directory | ||
cd "${HOME}" | ||
|
||
# | ||
# Launch Fluxbox | ||
# | ||
|
||
# Create Fluxbox root or it will override the below init file | ||
( | ||
umask 077 | ||
mkdir -p "${HOME}/.fluxbox" | ||
) | ||
|
||
# Start the Fluxbox window manager (it likes to crash on occassion, make it | ||
# persistent) | ||
( | ||
until fluxbox -display "${DISPLAY}.0" -rc "<%= session.staged_root.join("fluxbox.rc") %>"; do | ||
echo "Fluxbox crashed with exit code $?. Respawning..." >&2 | ||
sleep 1 | ||
done | ||
) & | ||
|
||
# | ||
# Start COMSOL Multiphysics | ||
# | ||
|
||
# Load the required environment | ||
module load <%= context.version %> | ||
|
||
# Launch COMSOL Multiphysics | ||
<%- if gpu -%> | ||
module load intel/16.0.3 virtualgl | ||
module list | ||
set -x | ||
vglrun comsol | ||
<%- else -%> | ||
module list | ||
set -x | ||
comsol -3drend sw | ||
<%- end -%> |