Customized code based on DieselEngineFoamSolver, always getting segmentation fault
Hello,
i am still working/searching for a good solution for MeshMoving. I figured out that the Cut/adding-cell algorithm can be find in the LayerAR.C (with its baseclasses). For testing I took the DieselEngineFoamSolver with "EngineTopoChangerMesh.H" (instead of EngineMesh.H) and "CreateEngineDynmiacMesh.H" (instead of CreateEngineMesh.H). For the first loops (crank angle -180 - (-170.5)) all is done fine. But then the solver gives the following message when the crank angle exactly reaching -170: Code:
deformSwitch 20 Code:
deformSwitch 20 Code:
Info << "1" << endl; I would be very happy anybody can help me! Any have fun to decrypt my Enlish :p |
I'm afraid the 'easiest' way to find out the exact location of the error is compiling a debug-version and running that (see http://openfoamwiki.net/index.php/HowTo_debugging)
Unless this is a well-known error. Then someone might be able to tell you directly what is wrong |
ok, i will repeat it with the debug-mode. let's see...
|
Hello,
i recompiled the openfoam-15-dev now with the linxgccdebug compiler. Now i can compile everything in debug-mode. I made the the same procedure like last time. Now: Quote:
The void checks if i is < 0 or < size (obv 531 in this case) but i have no idea where he gets: a) index i b) size If anybody knows that, it would be very helpfull. :) |
Quote:
http://openfoamwiki.net/index.php/HowTo_debugging Normally the actual error should be one or two points below the intercepted UList-access. The stack-trace reports reports the filenames and the line-numbers in the debug-version. And that is the information of interest Bernhard |
Hello,
it's me again ;) I teste the "bt" command in gdb after the segmentation fault: Code:
#0 0xb804d430 in __kernel_vsyscall () The orginally error is now: index 1 out of range 0 ... 0 From function UList<T>::checkIndex(const label) in file /home/cfd/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/UListI.H at line 111. FOAM aborting |
All times are GMT -4. The time now is 03:49. |