Skip to content

Commit 049bcda

Browse files
authored
Merge pull request #372 from SouthernMethodistUniversity/test_docs_ci
Add CI testing and fix a few minor module issues
2 parents cc5de83 + 0d0a602 commit 049bcda

File tree

11 files changed

+26
-35
lines changed

11 files changed

+26
-35
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ the advanced compute capabilities provided with the cluster.
2222

2323
Students, faculty, or staff should register for the workshops in advance via the links below. Please bring your laptop to the workshop.
2424

25-
<iframe src="https://libcal.smu.edu/widget/events/minicalendar?&cal_id=15527&l=50&tar=0&h=450&sp=0&audience=&c=8174-8175&z=" style="border-width:0" width="100%" height="464" frameborder="0" scrolling="no"></iframe>
25+
<iframe src="https://libcal.smu.edu/widget/events/minicalendar?&cal_id=15527&l=50&tar=0&h=450&sp=0&audience=&c=8174-8175&z=" style="border-width:0" width="100%" height="464" frameborder="0" scrolling="no"></iframe>

docs/portal.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,3 @@ run modules and code with the Slurm scheduler from an SSH session.
115115
selecting the "Upload" button.
116116
- You can download files and directories by selecting them and then
117117
selecting the "Download" button.
118-

modules/m3/applications/crystal/23/1.0.1-1.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ whatis("CRYSTAL 23 v1.0.1: Must be member of crystal group. Request access at vi
33
local err_message="To use this module you must be in a particular group\n" ..
44
"Please contact help@smu.edu with HPC in the subject to join crystal group\n"
55

6-
local found = required_group("crystal")
7-
local found_new = required_group("hpc-crystal")
6+
local valid_groups = userInGroups("hpc-crystal")
87

9-
if (not found and not found_new) then
10-
LmodError(err_message)
8+
if (not valid_groups) then
9+
LmodBreak(err_message)
1110
end
1211

1312
family("crystal")

modules/m3/applications/crystal/23/1.0.1.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ whatis("CRYSTAL 23 v1.0.1: Must be member of crystal group. Request access at vi
33
local err_message="To use this module you must be in a particular group\n" ..
44
"Please contact help@smu.edu with HPC in the subject to join crystal group\n"
55

6-
local found = required_group("crystal")
7-
local found_new = required_group("hpc-crystal")
6+
local valid_groups = userInGroups("hpc-crystal")
87

9-
if (not found and not found_new) then
10-
LmodError(err_message)
8+
if (not valid_groups) then
9+
LmodBreak(err_message)
1110
end
1211

1312
family("crystal")

modules/m3/applications/gaussian/g09d.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ whatis("Gaussian 09 D: Must be member of gaussian group. Request access at help@
33
local err_message="To use this module you must be in a particular group\n" ..
44
"Please contact help@smu.edu with HPC in the subject to join gaussian group\n"
55

6-
local found = required_group("gaussian")
7-
local found_new = required_group("hpc-gaussian")
6+
local valid_groups = userInGroups("hpc-gaussian")
87

9-
if (not found and not found_new) then
10-
LmodError(err_message)
8+
if (not valid_groups) then
9+
LmodBreak(err_message)
1110
end
1211

1312
family("gaussian")

modules/m3/applications/gaussian/g16c/haswell.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ whatis("Gaussian 16 C.02: Must be member of gaussian group. Request access at he
33
local err_message="To use this module you must be in a particular group\n" ..
44
"Please contact help@smu.edu with HPC in the subject to join gaussian group\n"
55

6-
local found = required_group("gaussian")
7-
local found_new = required_group("hpc-gaussian")
6+
local valid_groups = userInGroups("hpc-gaussian")
87

9-
if (not found and not found_new) then
10-
LmodError(err_message)
8+
if (not valid_groups) then
9+
LmodBreak(err_message)
1110
end
1211

1312
family("gaussian")

modules/m3/applications/gaussian/g16c/zen3.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ whatis("Gaussian 16 C.02: Must be member of gaussian group. Request access at he
33
local err_message="To use this module you must be in a particular group\n" ..
44
"Please contact help@smu.edu with HPC in the subject to join gaussian group\n"
55

6-
local found = required_group("gaussian")
7-
local found_new = required_group("hpc-gaussian")
6+
local valid_groups = userInGroups("hpc-gaussian")
87

9-
if (not found and not found_new) then
10-
LmodError(err_message)
8+
if (not valid_groups) then
9+
LmodBreak(err_message)
1110
end
1211

1312
family("gaussian")

modules/m3/applications/gaussview/6.0.16.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ whatis("GaussView")
22
local err_message="To use this module you must be in a particular group\n" ..
33
"Please contact help@smu.edu with HPC in the subject to join gaussian group\n"
44

5-
local found = required_group("gaussian")
6-
local found_new = required_group("hpc-gaussian")
5+
local valid_groups = userInGroups("hpc-gaussian")
76

8-
if (not found and not found_new) then
9-
LmodError(err_message)
7+
if (not valid_groups) then
8+
LmodBreak(err_message)
109
end
1110

1211
family("gaussview")

modules/m3/applications/vasp/5.4.4.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ whatis("VASP 5.4.4: Must be member of vasp group. Request access at via help@smu
33
local err_message="To use this module you must be in a particular group\n" ..
44
"Please contact help@smu.edu with HPC in the subject to join vasp group\n"
55

6-
local found = required_group("vasp")
7-
local found_new = required_group("hpc-vasp")
6+
local valid_groups = userInGroups("hpc-vasp")
87

9-
if (not found and not found_new) then
10-
LmodError(err_message)
8+
if (not valid_groups) then
9+
LmodBreak(err_message)
1110
end
1211

1312
family("vasp")

modules/mp/apps/gaussian/g16c02.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ whatis("Gaussian 16 C.02: Must be member of gaussian group. Request access at he
33
local err_message="To use this module you must be in a particular group\n" ..
44
"Please contact help@smu.edu with HPC in the subject to join gaussian group\n"
55

6-
local found = required_group("gaussian")
7-
local found_new = required_group("hpc-gaussian")
6+
local valid_groups = userInGroups("hpc-gaussian")
87

9-
if (not found and not found_new) then
10-
LmodError(err_message)
8+
if (not valid_groups) then
9+
LmodBreak(err_message)
1110
end
1211

1312
family("gaussian")

0 commit comments

Comments
 (0)