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

Wmake problem interFoam solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2008, 13:12
Default Hey, I ran into a problem with
  #1
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
Hey, I ran into a problem with the interFoam solver. Whenever I remake (wmake) the solver after adding a couple of comments I get a warning saying: there is an 'unused variable' from the readPISOControls.H . So I copied the original interFoam solver and renamed it and ran wmake, and I get the same warning:

Making dependency list for source file test_interFoam.C
SOURCE=test_interFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/transportModels -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/transportModels/incompressible/lnInclude -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/transportModels/interfaceProperties/lnInc lude -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/test_interFoam.o
/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude/readPISOControls.H:3 : warning: unused variable ‘nCorr’
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/transportModels -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/transportModels/incompressible/lnInclude -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/transportModels/interfaceProperties/lnInc lude -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/usr/apps1/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread Make/linuxGccDPOpt/test_interFoam.o -L/usr/apps1/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt \
-linterfaceProperties -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -ldl -lm -o /usr/erc/people/egehring/OpenFOAM/egehring-1.5/applications/bin/linuxGccDPOpt/te st_interFoam

Is this just something I can ignore? Or is there something wrong with my interFoam solver? Thanks,
feijo
feijooos is offline   Reply With Quote

Old   December 6, 2008, 06:34
Default Hi Eelco, it is just what i
  #2
caw
Member
 
Christian Winkler
Join Date: Mar 2009
Location: Mannheim, Germany
Posts: 63
Rep Power: 17
caw is on a distinguished road
Hi Eelco,

it is just what it says: A warning about an unused variable. Nothing to worry about.

This happens if a variable is declared that is not used in the rest of the code.

Best regards
Christian
caw is offline   Reply With Quote

Old   December 8, 2008, 04:05
Default Hi Eelco, nCorr is unused
  #3
Member
 
florian
Join Date: Mar 2009
Location: Mannheim - Vincennes - Valenciennes, Deutchland - France
Posts: 34
Rep Power: 17
floooo is on a distinguished road
Hi Eelco,

nCorr is unused
I have exactly the same warnig message

Florian
floooo is offline   Reply With Quote

Old   December 8, 2008, 10:47
Default Hi Florian, Thanks, i was w
  #4
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
Hi Florian,

Thanks, i was wondering which variables isn't used.

Eelco
feijooos is offline   Reply With Quote

Old   December 8, 2008, 11:01
Default isn't nCorr used in the PISO l
  #5
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
isn't nCorr used in the PISO loop in interFoam.C?

// --- PISO loop
for (int corr=0; corr<nCorr; corr++)
{
#include "pEqn.H"
}

I also specify it in my fvSolution file.
feijooos 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
About interFoam solver zou_mo OpenFOAM Running, Solving & CFD 129 December 2, 2019 05:39
Wmake problem thumthae OpenFOAM Installation 12 December 3, 2008 09:30
Problem about wmake turbFoam williamscn OpenFOAM Running, Solving & CFD 3 September 19, 2007 11:55
About interfoam solver qiu OpenFOAM Running, Solving & CFD 0 May 6, 2007 22:48
Need documentation for interFOAM solver mer OpenFOAM Running, Solving & CFD 5 May 31, 2006 12:22


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