https://github.com/geodynamics/citcoms
Revision 2678c56a338b49d60aa0f3f85bdd06a8a5de3df5 authored by Eh Tan on 23 March 2007, 19:37:24 UTC, committed by Eh Tan on 23 March 2007, 19:37:24 UTC
1 parent b4b5b1c
Tip revision: 2678c56a338b49d60aa0f3f85bdd06a8a5de3df5 authored by Eh Tan on 23 March 2007, 19:37:24 UTC
Added the low-visc-zone parameters to the manual and the sample input files
Added the low-visc-zone parameters to the manual and the sample input files
Tip revision: 2678c56
citcoms_datadir
#!/usr/bin/env python
def get_var():
# get your username on this machine, and make it upper case
import os
var = os.environ.get("USER")
return var.upper()
# invariant prefix of datadir
prefix = "/scratch/"
# invariant suffix of datadir
suffix = ""
# get the machine-dependent part of datadir
var_path = get_var()
# construct the full string for datadir
print "%s%s%s" % ( prefix, var_path, suffix )
Computing file changes ...