Skip to content

Commit

Permalink
Merge pull request #27 from amereghe/fixOverridingPlatform
Browse files Browse the repository at this point in the history
Fix overriding platform
Added also note on naming convention of workspace and study, avoiding not only "__" strings but also the name of the platform in lower cases
  • Loading branch information
amereghe authored May 22, 2018
2 parents cd84d11 + c6ce33a commit dbe7f00
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
12 changes: 9 additions & 3 deletions utilities/bash/dot_profile
Original file line number Diff line number Diff line change
Expand Up @@ -1126,13 +1126,19 @@ sixdeskSetExes(){
}
sixdeskSetPlatForm(){
local __platform=$1
local __lerr=0
local __origPlatForm=${sixdeskplatform}
if [ -n "${__platform}" ] ; then
# platform as requested by user (no matter if in sixdeskenv or via terminal line option)
export sixdeskplatform=`echo "$__platform" | tr '[A-Z]' '[a-z]'`
if [ "$sixdeskplatform" != "boinc" ] && [ "$sixdeskplatform" != "lsf" ] && [ "$sixdeskplatform" != "htcondor" ] ; then
sixdeskmess -1 "unknown platform: ${sixdeskplatform}"
return 1
fi
let __lerr+=1
fi
if [ -n "${__origPlatForm}" ] ; then
[ -z "${sixdeskjobs}" ] || export sixdeskjobs=${sixdeskjobs/${__origPlatForm}/${sixdeskplatform}}
[ -z "${sixdeskjobs_logs}" ] || export sixdeskjobs_logs=${sixdeskjobs_logs/${__origPlatForm}/${sixdeskplatform}}
fi
else
# set default platform
export sixdeskplatform="htcondor"
Expand All @@ -1151,7 +1157,7 @@ sixdeskSetPlatForm(){
[ -n "${sixdeskbnlout}" ] || export sixdeskbnlout=$bnlfilenames
fi
fi
return 0
return ${__lerr}
}

sixDeskCheckAppName(){
Expand Down
10 changes: 10 additions & 0 deletions utilities/doc/chGuidelines.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
\chapter{Giudelines and Common Pitfalls} \label{Guidelines}

\section{Naming Convention}
\subsection{Study and Workspace Names}
\begin{itemize}
\item avoid the use of ``\texttt{\_\_}'' (i.e.~a string of two
consecutive underscore characters), as this is used by the BOINC
assimilator to properly disentangle study name and name of job in
the study;
\item avoid the use of the platform in lower case explicitly in the name;
\end{itemize}

\section{Choice of Platform}
HTCondor is convenient when:
\begin{enumerate}
Expand Down
Binary file modified utilities/doc/sixdesk.pdf
Binary file not shown.

0 comments on commit dbe7f00

Please sign in to comment.