Commit d3af2d99 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles
Browse files

some fixes

parent a25a2a86
......@@ -39,7 +39,7 @@ def compute(file,out,comp,take,bits,mmult):
# loop on all components stored in comp variable
for onecomp in (compchk.split(",")):
printAndSaveProp(uns,unso,onecomp,take,mmult) # print properties for the component
unso.save()
unso.save()
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# keepEveryTake:
......@@ -97,7 +97,7 @@ def printAndSaveProp(uns,unso,comp,take,mmult):
ok,acc=uns.getArrayF(comp,"acc")
if ok:
print "acc =",acc
vel=keepEveryTake(acc,3,take)
acc=keepEveryTake(acc,3,take)
unso.setArrayF(comp,"acc",acc) # save vel
# return a 1D numpy data array with rho
......
......@@ -14,7 +14,7 @@ def commandLine():
fastcod=True
threshold=10000
# help
parser = argparse.ArgumentParser(description="UNS test COD python",
parser = argparse.ArgumentParser(description="Convert enzo simulation to gdget2",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# options
parser.add_argument('simname', help='Simulation name')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment