CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   bash script for pseudo-parallel usage of reconstructPar (https://www.cfd-online.com/Forums/openfoam-post-processing/64652-bash-script-pseudo-parallel-usage-reconstructpar.html)

quarkz July 14, 2023 03:07

Hi,

I am having problems when I specify the start and end times:

Code:

./parReconstructPar.sh -n 32 -t 0.07342,2.00042

      K. Wardle 6/22/09, modified by H. Stadler Dec. 2013, modified by G.Salvador-Vieira 6/8/18
      bash script to run reconstructPar in pseudo-parallel mode
      by breaking time directories into multiple ranges

running reconstructPar in pseudo-parallel mode on 32 processors
(standard_in) 1: syntax error
./parReconstructPar2.sh: line 93: [: ==: unary operator expected
(standard_in) 1: syntax error
./parReconstructPar2.sh: line 103: [: ==: unary operator expected
(standard_in) 1: syntax error
./parReconstructPar2.sh: line 103: [: ==: unary operator expected

Can someone help?

MTomić August 23, 2023 02:48

Quote:

Originally Posted by quarkz (Post 853329)
Hi,

I am having problems when I specify the start and end times:

Code:

./parReconstructPar.sh -n 32 -t 0.07342,2.00042

      K. Wardle 6/22/09, modified by H. Stadler Dec. 2013, modified by G.Salvador-Vieira 6/8/18
      bash script to run reconstructPar in pseudo-parallel mode
      by breaking time directories into multiple ranges

running reconstructPar in pseudo-parallel mode on 32 processors
(standard_in) 1: syntax error
./parReconstructPar2.sh: line 93: [: ==: unary operator expected
(standard_in) 1: syntax error
./parReconstructPar2.sh: line 103: [: ==: unary operator expected
(standard_in) 1: syntax error
./parReconstructPar2.sh: line 103: [: ==: unary operator expected

Can someone help?

Hi,

I am probably late to the party, but have you tried invoking the command with

Code:

sh ./parReconstructPar.sh -n 32 -t 0.07342,2.00042

quarkz May 7, 2024 23:17

Hi MTomić, I just tried it on another case and it's working, although there's a minor error.

Code:

./parReconstructPar3.sh -n 64 -t 0.1,0.4

      K. Wardle 6/22/09, modified by H. Stadler Dec. 2013, modified by G.Salvador-Vieira 6/8/18
      bash script to run reconstructPar in pseudo-parallel mode
      by breaking time directories into multiple ranges

running reconstructPar in pseudo-parallel mode on 64 processors
reconstructing 3 time directories
making temp dir
Starting Job 1 - reconstructing time = 0.1 through 0.1
Job started with PID 3221222
Starting Job 2 - reconstructing time = 0.2 through 0.2
Job started with PID 3221234
Starting Job 3 - reconstructing time = 0.3 through 0.3
Job started with PID 3221288
3 directories remaining...
1 directories remaining...
finished

So t = 0.4 is not included. Did I do something wrong?

Thanks!


All times are GMT -4. The time now is 10:17.