# Configuration file
# These values could be overridden by ~/.astkrc/config

#-------------------------------------------------------------------------------
# Code_Aster web server (for updates)
http_server_ip : www.code-aster.org
http_server_user : anonymous

# repository of update files on the http server
http_rep_maj : /FICHIERS

# EDF development server (only for intranet usage)
# (devel_server_user (a.k.a. login) should be set in ~/.astkrc/config)
devel_server_ip : aster.cla.edfgdf.fr

# default mode for as_run --show, --get, --getop... (False needs access to EDF server)
default_local : True

#-------------------------------------------------------------------------------
# ----- local configuration
# local repository where update files can be downloaded before
local_rep_maj : /tmp

# message of the day
#motd : ?ASTER_CONFDIR?/motd

# root of temporary space for astk services
rep_tmp : /tmp

# "Aster" platform
# (one of SOLARIS, SOLARIS64, TRU64, IRIX, P_LINUX)
plate-forme : ?IFDEF?

# temporary directory for Aster executions
rep_trav : /tmp

# temporary directory for Aster executions shared by all processors
# (used by mpi executions). For example : /export/tmp, /home/tmp...
shared_tmp : /tmp

# shared folders = for which remote copy is never necessary (comma separated)
shared_folders :

# choose True to create symbolic links instead of copying executable and catalogs
symlink : True

# FLASH directory create in HOME of users
flash_srv : flasheur

# text editor (must accept '-display XXX' argument syntax)
editor : ?EDITOR?

# terminal for interactive calculation following output
#    @E will be remplaced by the commande line
#    @D will be remplaced by the DISPLAY variable value
terminal : ?TERMINAL?

#-------------------------------------------------------------------------------
# nodes of the cluster for interactive calculation or
# to call batch commands
noeud : ?NODE?

# add frontal machine (which is astk server in GUI) as a compute node
serv_as_node : True

# ...and just keep it (ignore 'noeud' list).
# This has no effect if serv_as_node is False.
only_serv_as_node : False

#-------------------------------------------------------------------------------
# ----- batch/interactive configuration
# Only LSF and Sun Grid Engine are supported now
# PBS support is always experimental

# batch : oui/non Choose 'oui' if a batch scheduler is available
# batch_memmax : memory limit in batch mode (MB)
# batch_tpsmax : cpu time limit in batch mode (hh:mm:ss)
# batch_nbpmax : max proc number in batch mode (OpenMP)
# batch_mpi_nbpmax : max proc number in batch mode (MPI))
batch : non
batch_memmax : 12000
batch_tpsmax : 72:00:00
batch_nbpmax : 16
batch_mpi_nbpmax : 32

# groups of batch queues and queues in each group (batch_queue_'group name')
batch_queue_group : urgent dvp
batch_queue_urgent : urgent
batch_queue_dvp : dev128M_3m dev256M_2h dev512M_2h dev2G_5h

# interactif : oui/non Choose 'non' to prohibit interactive calculation
# memory limit in interactive mode (MB)
# cpu time limit in interactive mode (hh:mm:ss)
# max proc number in interactive mode (OpenMP)
# max proc number in interactive mode (MPI)
interactif : oui
interactif_memmax : 2048
interactif_tpsmax : 99:00:00
interactif_nbpmax : 16
interactif_mpi_nbpmax : 32

#-------------------------------------------------------------------------------
# ----- batch commands
# bach_nom : one of LSF, SunGE, PBS
# batch_ini : initialisation (shell script, sh/ksh syntax)
# batch_sub : command to submit a job
# batch_jid : variable to get the job number
# batch_job : to display information about jobs
# batch_kil : to delete jobs
# --- Sun Grid Engine example
batch_nom : SunGE
batch_ini : /opt/SunGE6.0/default/common/settings.sh
batch_sub : /opt/SunGE6.0/bin/lx24-x86/qsub
batch_jid : JOB_ID
batch_job : /opt/SunGE6.0/bin/lx24-x86/qstat
batch_kil : /opt/SunGE6.0/bin/lx24-x86/qdel

# --- LSF example
#batch_nom : LSF
#batch_ini : /usr/share/lsf/conf/profile.lsf
#batch_sub : /usr/share/lsf/6.2/linux2.6-glibc2.3-ia64/bin/bsub
#batch_jid : LSB_JOBID
#batch_job : /usr/share/lsf/6.2/linux2.6-glibc2.3-ia64/bin/bjobs
#batch_kil : /usr/share/lsf/6.2/linux2.6-glibc2.3-ia64/bin/bkill

# --- PBS example
#batch_nom : PBS
#batch_ini : 
#batch_sub : /usr/bin/qsub
#batch_jid : PBS_JOBID
#batch_job : /usr/bin/qstat
#batch_kil : /usr/bin/qdel

#-------------------------------------------------------------------------------
# ----- MPI commands and parameters
# mpirun
#    available arguments are : mpi_hostfile, mpi_nbnoeud, mpi_nbcpu
#    (use Python string formatting style)
mpirun_cmd : ?MPIRUN? -np %(mpi_nbcpu)s --hostfile %(mpi_hostfile)s %(program)s

# file which contains list of hosts (REQUIRED even if it is not used in mpirun_cmd)
mpi_hostfile : ?ASTER_CONFDIR?/aster-mpihosts

# command called to initialize MPI environment (for example for mpich2)
#mpi_ini : mpdboot --totalnum=%(mpi_nbnoeud)s --file=%(mpi_hostfile)s ; sleep 10

# command called to close the MPI session (for example for mpich2)
#mpi_end : mpdallexit

# shell command to get processor id
# LAM/MPI : echo $LAMRANK
# OpenMPI : echo $OMPI_MCA_ns_nds_vpid
# Mpich2  : echo $PMI_RANK
mpi_get_procid_cmd : echo $PMI_RANK

# maximum number of nodes
mpi_nbnoeudmax : 1
mpi_nbcpumax : 1

#-------------------------------------------------------------------------------
# ------ default parameters for distributed calculations (ex. astout)
# uncomment these lines
#batch_distrib_hostfile : ?ASTER_CONFDIR?/batch_distrib_hostfile
#interactif_distrib_hostfile : ?ASTER_CONFDIR?/interactif_distrib_hostfile

#-------------------------------------------------------------------------------
# command lines for 'exectool' (see Options menu in astk)
# uncomment these lines
#memcheck : valgrind --tool=memcheck --error-limit=no --leak-check=full --suppressions=$HOME/python.supp

#-------------------------------------------------------------------------------
# ps commands : uncomment lines corresponding to your platform
#ps_cpu : /bin/ps -e --width=512 -ocputime -ocommand
#ps_pid : /bin/ps -e --width=512 -opid -ocommand
ps_cpu : ?PS_COMMAND_CPU?
ps_pid : ?PS_COMMAND_PID?

#-------------------------------------------------------------------------------
# debug command :
#  @E will be remplaced by the name of the executable
#  @C will be remplaced by the name of the corefile
#  @D will be remplaced by the filename which contains "where+quit"
#  @d will be remplaced by the string 'where ; quit'
#
#cmd_post : gdb -batch --command=@D @E @C
#cmd_dbg : ddd --debugger gdb --command=@D @E @C
cmd_post : ?DEBUGGER_COMMAND_POST?
cmd_dbg : ?DEBUGGER_COMMAND?

#-------------------------------------------------------------------------------
# style of ctags used (optionnal, leave commented to ignore ctags generation)
# Valid values : 'exuberant' or 'emacs'
#?CTAGS_STYLE?
#ctags_style : exuberant



