CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Open MPI error in codestream and calcEntry usage

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2019, 09:16
Default Open MPI error in codestream and calcEntry usage
  #1
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
Hi everyone,

I am trying to use a setup file in the main case directory with all necessary parameters inside, and then include it in necessary files, such as blockMesh, controlDict etc... Hence, it is easier to adjust other parameters automatically with #calc "..." command and such.

The problem is, I get the following error in applications which I run in parallel:

Code:
----------------------------------------------------------------------------
Open MPI has detected that a parameter given to a command line
option does not match the expected format:

  Option: np
  Param:  Using

This is frequently caused by omitting to provide the parameter
to an option that requires one. Please check the command line and try again.
----------------------------------------------------------------------------
I am using runApplication and runParallel commands. The only "Using" text I see is in log files, such as:

Code:
Using #calcEntry at line 46 in file "/cfd/honel/OpenFOAM/honel-5.x/case.base/system/controlDict"
Using #codeStream with "/cfd/honel/OpenFOAM/honel-5.x/case.base/dynamicCode/platforms/linux64Gcc48DPInt64Opt/lib/libcodeStream_fe2cc5f31c42fb4ac156bdafc23258752b41bb69.so"
Did anyone encounter this problem before?
hconel is offline   Reply With Quote

Old   June 23, 2019, 09:27
Default
  #2
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
UPDATE: I have narrowed down the problem. I guess, the issue occurs when I define the numberOfSubdomains parameter in decomposeParDict by including an external file, such as:

Code:
#include "../setupCase"

numberOfSubdomains $N_PROCS_;
then I get the error. If I directly define it as

Code:
numberOfSubdomains 64;
no errors occur. Couldn't figure out why.
hconel is offline   Reply With Quote

Reply


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



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