Revision 4e60f5e8014da9d2750262535e3d589ce9b638b2 authored by Lijie Han on 18 July 2007, 23:06:35 UTC, committed by Lijie Han on 18 July 2007, 23:06:35 UTC
M    Coupler/MultiC_Coupler.py

Fixed the synchronization part. Need to test on it. Now Embedded Couplers will wait until containing coupler make a decision.

1 parent b639d7b
Raw File
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 )
back to top