https://github.com/geodynamics/citcoms
Revision 4f1ae8bee14cd6ca141f3914d231506c4db76e75 authored by Rajesh Kommu on 09 April 2014, 16:28:32 UTC, committed by Rajesh Kommu on 09 April 2014, 16:28:32 UTC
based parameters and settings.
1 parent c23d985
Tip revision: 4f1ae8bee14cd6ca141f3914d231506c4db76e75 authored by Rajesh Kommu on 09 April 2014, 16:28:32 UTC
Removed section 2 from Appendix A of the manual, which describes the Pyre
Removed section 2 from Appendix A of the manual, which describes the Pyre
Tip revision: 4f1ae8b
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 ...