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
#!/bin/bash | |
##################################################################################### | |
# | |
# usage: | |
# | |
# egs-parallel.sh <n> <command> | |
# n: number of jobs | |
# command: EGSnrc command you want to run in parallel | |
# |
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
@echo off | |
REM ################################################################################# | |
REM | |
REM usage: | |
REM egs-parallel.bat (or double-click on this file) | |
REM | |
REM ################################################################################# | |
REM # ask about command and number of processes |
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
#!/usr/bin/python | |
import sys, re, os.path | |
# usage | |
if (len(sys.argv) < 2): | |
print '''\nusage: | |
%s x|y|z a,b filenames | |
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
#!/bin/bash | |
##################################################################################### | |
# | |
# usage: | |
# | |
# dosxyz-parallel <input> <pegs> <n> | |
# | |
# input: basename of input.template input file | |
# pegs: pegs file to use |
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
#!/bin/bash | |
##################################################################################### | |
# | |
# usage: | |
# | |
# egs-submit <app> <template> [ pid ] | |
# | |
# app: EGSnrc app to invoke | |
# template: input file with "@" placeholders |
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
#!/usr/bin/python | |
import sys, re, os.path, math | |
# usage | |
if (len(sys.argv) < 2): | |
print ('''\nusage:) | |
%s filenames |
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
@echo off | |
REM ################################################################################# | |
REM | |
REM usage: | |
REM egs-parallel.bat (or double-click on this file) | |
REM | |
REM ################################################################################# | |
REM # ask about command and number of processes |
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
#!/bin/bash | |
# usage display | |
usage() { | |
echo -e "\nPlease provide at least one simulation basename." | |
echo -e "\nUSAGE:\n$(basename $0) [ basename1 basename2 ... ]\n" | |
} | |
# check if there is at least one argument | |
if [ $# -lt 1 ]; then |
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
#!/usr/bin/env perl | |
$count=0; | |
print " "; | |
while (<>) { | |
chomp; | |
# convert estar output to pegs format |
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
#!/bin/bash | |
# usage display | |
usage() { | |
echo -e "\nPlease provide at least one simulation basename." | |
echo -e "\nUSAGE:\n$(basename $0) [ basename1 basename2 ... ]\n" | |
} | |
# check if there is at least one argument | |
if [ $# -lt 1 ]; then |