|
[Sponsors] |
Modify the reconstructPar to delete the reconstructed parallel directories within the loop |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 13, 2005, 06:22 |
I'm solving a case with big nu
|
#1 |
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18 |
I'm solving a case with big number of nodes and I need to save the instantaneous data. I need to modify the reconstructPar to delete the reconstructed parallel directories (within the reconstruction loop). I need to add an option to the command -savestorage which let the reconstructPar delete the reconstructed directory after reconstructing it. This can not be done at the end since the data are near a terra bite. I would be gratefule if any body can help.
Best regards, Maka |
|
December 14, 2005, 08:21 |
I checked util/parallel/recost
|
#2 |
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18 |
I checked util/parallel/recostructPar.C. I know where (end of time-directories loop) to put the delete statement but I can't figure out what should I write to delete the folder. Can any body help.
Regards, Maka |
|
December 16, 2005, 11:37 |
Try
for(label np = 0; np <
|
#3 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
Try
for(label np = 0; np < nProcs; np++) { rmDir(mesh.path()/fileName(word("processor")+Foam::name(np))); } or something similar. Foam wrappers for a lot of system commands can be found in Unix.C. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time directories | robbo | OpenFOAM | 1 | May 21, 2008 17:49 |
Face loop in a Parallel UDF | Dario | FLUENT | 4 | May 10, 2007 09:34 |
Script for generating lnInclude directories | brooksmoses | OpenFOAM | 4 | January 26, 2006 20:02 |
Modifing reconstructPar to delete the reconstructed parallel directories | maka | OpenFOAM Pre-Processing | 1 | December 13, 2005 08:16 |
loop(p,I->p) how this loop works? | Sinan | FLUENT | 0 | January 18, 2005 19:04 |