CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

bash script for pseudo-parallel usage of reconstructPar

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree55Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2023, 03:07
Default
  #41
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 402
Rep Power: 19
quarkz is on a distinguished road
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?
quarkz is offline   Reply With Quote

Old   August 23, 2023, 02:48
Default
  #42
New Member
 
Matej Tomić
Join Date: Jul 2022
Location: Sweden
Posts: 4
Rep Power: 3
MTomić is on a distinguished road
Quote:
Originally Posted by quarkz View Post
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
__________________
Regards,
Matej
MTomić is offline   Reply With Quote

Old   May 7, 2024, 23:17
Default
  #43
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 402
Rep Power: 19
quarkz is on a distinguished road
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!
quarkz is offline   Reply With Quote

Reply

Tags
parallel processing, reconstructpar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running decomposePar / reconstructPar as parallel apps? carcass OpenFOAM Running, Solving & CFD 3 January 17, 2024 07:19
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 22:51
Core usage on CFX parallel processing alterego CFX 6 December 21, 2011 05:45
Swap usage on parallel run nikhilesh OpenFOAM Running, Solving & CFD 0 April 30, 2009 09:50
TASCflow,problem with script and parallel mode Zbynek Hrncir CFX 0 October 2, 2001 07:30


All times are GMT -4. The time now is 14:26.