https://github.com/geodynamics/citcoms
Tip revision: 5812fbeb3760dd7ef242e18d1f299c37e11e109d authored by Eh Tan on 19 March 2007, 23:49:51 UTC
lost_souls() cannot be shared by both versions. The parallel communications of
lost_souls() cannot be shared by both versions. The parallel communications of
Tip revision: 5812fbe
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 )