Errors when using slightly modified solver libraries
Posted: 08 Aug 2010, 16:26
Hi everyone,
I'd like to write a slightly modified StatElecSolver. I downloaded the Elmer binaries (Windows XP workstation) and the source code of Elmer Solver (5.4.0). I made some changes (just adding some CALL Info(...)) to StatElecSolve.src so I could see whether it works. After compiling the source code and replacing the installed library with the compiled one I ran the solver but it crashed. The error seems to occur when the library tries to access the 'Variable' field in the 'Solver' structure for the first time (Potential => ...). Using the compiled version of Elmer Solver instead of the binary included in the installation package didn't prevent a crash either. Apparently the GetSolverParams() function is not used, which disagrees with the Solver Manual (section ‘Basic Programming’ – 'Writing a Solver').
What is wrong with the source code (or me)? Does anyone know how to fix this? I'd be happy about any advice.
Thanks a lot in advance.
I'd like to write a slightly modified StatElecSolver. I downloaded the Elmer binaries (Windows XP workstation) and the source code of Elmer Solver (5.4.0). I made some changes (just adding some CALL Info(...)) to StatElecSolve.src so I could see whether it works. After compiling the source code and replacing the installed library with the compiled one I ran the solver but it crashed. The error seems to occur when the library tries to access the 'Variable' field in the 'Solver' structure for the first time (Potential => ...). Using the compiled version of Elmer Solver instead of the binary included in the installation package didn't prevent a crash either. Apparently the GetSolverParams() function is not used, which disagrees with the Solver Manual (section ‘Basic Programming’ – 'Writing a Solver').
What is wrong with the source code (or me)? Does anyone know how to fix this? I'd be happy about any advice.
Thanks a lot in advance.