|
[Sponsors] |
October 21, 2009, 03:29 |
|
#21 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
This might work better, Code:
autoPtr<myProcessorMeshes> procMeshes; if (USE_DECOMP_CONDITION) { procMeshes.set(new myProcessorMeshes( ...)); } |
||
October 21, 2009, 11:23 |
|
#22 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Thanks again and again Mark, now it is working fine!
Actually I also had to modify the lines where functions of procMeshes are called; since procMeshes is now a pointer and no more a variable, Code:
procMeshes.readUpdate() Code:
procMeshes->readUpdate() Is anyone interested in this utility, either to test and/or to use it? Anyway, many thanks for your patience Mark, I know I got much to learn left on C++ and OF-programming! I think that on the same model, I will modify foamToTecplot utility to include this reconstruction option. melanie |
|
October 22, 2009, 03:38 |
|
#23 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Code:
autoPtr<myProcessorMeshes> procMeshesPtr; // ... some logic here myProcessorMeshes& procMeshes = procMeshesPtr(); // or with const-only access const myProcessorMeshes& procMeshes = procMeshesPtr(); // .. later procMeshes.readUpdate(); Check the autoPtr docs again for information about the autoPtr:perator() methods. |
||
November 20, 2009, 05:36 |
|
#24 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Hi Melanie,
Any more progress to report? /mark |
|
November 20, 2009, 07:47 |
|
#25 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Hello Mark,
Actually I was able to successfuly correct my code with your latest suggestions. However, about one week after that, the machine on which I used to compile crashed. And on the other machines, I always have a compilation error, even with code written by others (like foamToTecplot utility). I did not post a bug description since I am not sure of where is the problem, OF paths or Linux Suse version, or something else. The real problem is that I am also unable to use the code compiled previously; the same error as on compilation is issued, saying Code:
~/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so: file not recognized: File format not recognized mélanie |
|
November 20, 2009, 08:10 |
|
#26 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
What does the 'file' command report? eg, Code:
$ file ~/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so "ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped" If that reports okay, but you still have problems, see if the symbol table looks intact (eg, objdump -t ~/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libfiniteVolume.so). Beyond that it's hard to say what's wrong. |
||
November 20, 2009, 08:16 |
|
#27 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
The answer to the "file" command is:
Code:
ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped Code:
File format not recognized |
|
November 20, 2009, 08:27 |
|
#28 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
||
November 20, 2009, 08:40 |
|
#29 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Actually on another machine the reply to the last command is a bit different, and the compilation error is also different. It seems similar to what is reported in this thread so I will firstly try to compile GCC on one of my machines and see if this helps...
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Physical Reason for stability of Implicit Schemes? | radhakrishnan | Main CFD Forum | 26 | October 3, 2023 23:05 |
SimpleFoam k and epsilon bounded | nedved | OpenFOAM Running, Solving & CFD | 16 | March 4, 2017 09:30 |
SimpleFoam k and epsilon bounded | nedved | OpenFOAM Running, Solving & CFD | 1 | November 25, 2008 21:21 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
time step selection | Jackie | Main CFD Forum | 5 | January 12, 2004 13:26 |