|
[Sponsors] |
xxxFoam > log, Failed! xxxFoam, succeed! ?..... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 21, 2015, 10:35 |
xxxFoam > log, Failed! xxxFoam, succeed! ?.....
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17 |
Hi guys,
I run into a very weird case.... In my code, its just a c++ program for now. It does not need any OpenFOAM libraries. It compiles no warning, no error. Runs smoothly. But when I add this: Code:
int main(int argc, char *argv[]) { #include "setRootCase.H" #include "createTime.H" #include "createMesh.H" Code:
Info<<endl; //- Check if its realizable, if not, get out of the loop if(!gaussian.gaussianCheckRealizable(weights, abscissas, ms, n) ) { break; } Info<<endl; But if I delete this info lines it shows: Code:
Create time Constructing single cell mesh Reading EQMOM properties #0 Foam::error::printStack(Foam::Ostream&) at ~/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/printStack.C:221 #1 Foam::sigFpe::sigHandler(int) at ~/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/signals/sigFpe.C:117 #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 KDF::gaussianCheckRealizable(double const*, double const*, double const*, int const&) at ~/case/phdCase/EQMOM/KDF/KDF.C:113 (discriminator 2) #4 at ~/case/phdCase/EQMOM/EQMOM/EQMOM.C:45 #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #6 at ??:? So Im quite confused now. Adding Info, succeed, Delete Info, fail. The code is related with Info???? Sorry, the title of this thread is misleading..
__________________
My OpenFOAM algorithm website: http://dyfluid.com By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html |
|
September 21, 2015, 11:16 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel | U.Golling | OpenFOAM Running, Solving & CFD | 52 | September 23, 2023 03:35 |
Initial conditions for uniform flow | andreas | OpenFOAM | 5 | November 16, 2012 15:00 |
[OpenFOAM] ParaView/Parafoam error when making animation | Disco_Caine | ParaView | 6 | September 28, 2010 09:54 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 06:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |