CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: deepsterblue
Forum: OpenFOAM Running, Solving & CFD June 9, 2008, 13:47
Replies: 9
Views: 2,744
Posted By deepsterblue
Hmm... Maybe this will work:

Hmm... Maybe this will work:

tmp<volscalarfield> initialize(int argc, char *argv[]){
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "createFields.H"
...
Forum: OpenFOAM Running, Solving & CFD June 5, 2008, 21:48
Replies: 9
Views: 2,744
Posted By deepsterblue
Can you rewrite it like this?

Can you rewrite it like this?

tmp<volscalarfield> initialize(int argc, char *argv[]){
#include "setRootCase.H"
#include "createTime.H"
#include "createMesh.H"
#include "createFields.H" ...
Forum: OpenFOAM Running, Solving & CFD June 5, 2008, 17:09
Replies: 9
Views: 2,744
Posted By deepsterblue
Static variables (I believe) h

Static variables (I believe) have a longer lifetime during the program run, and is generally a bad choice for your problem.
I'd suggest that you create a tmp<volscalarfield> within your function...
Showing results 1 to 3 of 3

 
Forum Jump

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