|August 6, 2012, 16:54||
copy cache file to each processor
Join Date: May 2011
Posts: 71Rep Power: 6
I have to copy a data file, that each processor would require, into the respective constant directories of the processors.
Is there a simpler way to do this, than to manually do "cp constant/cachefile processor(n)/constant" for each of the N processors whenever I try to run a case.
Maybe a script that I can write just once, and use whenever a case is run?
Any help is appreciated.
|August 7, 2012, 05:50||
Join Date: Mar 2009
Location: Lisbon, Portugal
Blog Entries: 35Rep Power: 94
This command line will copy the file "file_name" as you asked:
for a in processor*; do cp constant/file_name $a/constant/file_name; done
|Thread||Thread Starter||Forum||Replies||Last Post|
|groovyBC in openFOAM-2.0 for parabolic velocity bc||ofslcm||OpenFOAM Pre-Processing||24||August 23, 2015 22:41|
|error message with modeling a cube with a hold at the center||hsingtzu||OpenFOAM Native Meshers: blockMesh||2||March 14, 2012 10:56|
|Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory'||mfiandor||OpenFOAM Installation||2||January 25, 2010 10:50|
|Compiling gmshFoam with OpenFOAM-1.5||BlGene||Open Source Meshers: Gmsh, Netgen, CGNS, ...||10||August 6, 2009 04:26|
|DecomposePar links against liblamso0 with OpenMPI||jens_klostermann||OpenFOAM Bugs||11||June 28, 2007 17:51|