[cig-commits] r21088 - seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT
surendra at geodynamics.org
surendra at geodynamics.org
Thu Nov 29 10:04:27 PST 2012
Author: surendra
Date: 2012-11-29 10:04:27 -0800 (Thu, 29 Nov 2012)
New Revision: 21088
Modified:
seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/functions.py
Log:
Avoid system call to move km->m mesh
Modified: seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/functions.py
===================================================================
--- seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/functions.py 2012-11-29 14:59:22 UTC (rev 21087)
+++ seismo/3D/FAULT_SOURCE/branches/new_fault_db/CUBIT/functions.py 2012-11-29 18:04:27 UTC (rev 21088)
@@ -100,7 +100,7 @@
def m2km():
name_in = 'MESH/nodes_coords_file'
- name_out = 'nodes_coords_file_m'
+ name_out = 'MESH/nodes_coords_file'
txt =''
km = 1000
input_file = open(name_in,'r')
@@ -119,7 +119,6 @@
txt=('%10i %20f %20f %20f\n') % (node_id,x,y,z)
output_file.write(txt)
output_file.close()
- os.system('mv nodes_coords_file_m MESH/nodes_coords_file')
return
# Runing functions ####
More information about the CIG-COMMITS
mailing list