[aspect-devel] Segmentation fault when referring to the functions of "class SimulatorAccess" in both depth-dependent.cc and its base model.
Wolfgang Bangerth
bangerth at tamu.edu
Tue Nov 24 04:31:43 PST 2015
On 11/23/2015 10:33 PM, Shangxin Liu wrote:
>
> Finally, I found that this error will always appear when using the compositing
> material model where the "class SimulatorAccess" is accessed both in
> depth-dependent and the base material model with the form such as "this ->
> get_geometry_model().depth(position)". And when I use the original simple.cc
> as the base model, which doesn't access the function of the "class
> SimulatorAccess" using command "this -> get_.......", the code can run
> successfully.
>
> It seems that the functions of the "class SimulatorAccess" cannot be accessed
> both in depth-dependent model and its base model using "this -> get_........".
Possible. I think I know what's happening (we forget to pass the call to
'initialize' through to the base model). Can you post that part of your input
file in which you set the material model?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth at math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/
More information about the Aspect-devel
mailing list