[aspect-devel] Segmentation fault when referring to the functions of "class SimulatorAccess" in both depth-dependent.cc and its base model.

Shangxin Liu sxliu at vt.edu
Tue Nov 24 08:25:58 PST 2015


Hi Wolfgang and Timo,

Here is the compositing material model part of my test prm file for the
public ASPECT version:

subsection Material model

  set Model name = depth dependent

  subsection Depth dependent model

    set Base model = simple compressible

    set Depth dependence method = File

    set Data directory =
/home/shangxin/aspect/data/material-model/depth-dependent-visc/

    set Viscosity depth file = four_layer_visc3.txt

  end

  subsection Simple compressible model

    set Reference density             = 3300.0

    set Thermal expansion coefficient = 4e-5

    set Viscosity                     = 1e21

    set Thermal conductivity          = 4.0

  end

end


The whole part of the prm file and the error record are also attached if
you want to take a look.


Best,


Shangxin

On Tue, Nov 24, 2015 at 7:31 AM, Wolfgang Bangerth <bangerth at tamu.edu>
wrote:

> 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/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20151124/799568e6/attachment-0001.html>
-------------- next part --------------
[hs002:04922] *** Process received signal ***
[hs002:04922] Signal: Segmentation fault (11)
[hs002:04922] Signal code: Address not mapped (1)
[hs002:04922] Failing at address: 0x40
[hs002:04922] [ 0] /lib64/libpthread.so.0(+0xf500) [0x7fd44853b500]
[hs002:04922] [ 1] /home/shangxin/aspect_public/build/aspect(_ZNK6aspect15SimulatorAccessILi3EE20get_surface_pressureEv+0x4) [0x87a2c4]
[hs002:04922] [ 2] /home/shangxin/aspect_public/build/aspect(_ZNK6aspect13MaterialModel18SimpleCompressibleILi3EE8evaluateERKNS0_19MaterialModelInputsILi3EEERNS0_20MaterialModelOutputsILi3EEE+0x104) [0x8cefa4]
[hs002:04922] [ 3] /home/shangxin/aspect_public/build/aspect(_ZNK6aspect13MaterialModel14DepthDependentILi3EE8evaluateERKNS0_19MaterialModelInputsILi3EEERNS0_20MaterialModelOutputsILi3EEE+0x24) [0x8dcb04]
[hs002:04922] [ 4] /home/shangxin/aspect_public/build/aspect(_ZN6aspect19AdiabaticConditions14InitialProfileILi3EE10initializeEv+0x48b) [0x6db28b]
[hs002:04922] [ 5] /home/shangxin/aspect_public/build/aspect(_ZN6aspect9SimulatorILi3EEC2EP19ompi_communicator_tRN6dealii16ParameterHandlerE+0x19d1) [0x82d5b1]
[hs002:04922] [ 6] /home/shangxin/aspect_public/build/aspect(main+0x468) [0x6d7408]
[hs002:04922] [ 7] /lib64/libc.so.6(__libc_start_main+0xfd) [0x7fd4481b8cdd]
[hs002:04922] [ 8] /home/shangxin/aspect_public/build/aspect() [0x6d09b9]
[hs002:04922] *** End of error message ***
--------------------------------------------------------------------------
mpirun noticed that process rank 0 with PID 4922 on node hs002 exited on signal 11 (Segmentation fault).
--------------------------------------------------------------------------
usage: kill [ -s signal | -p ] [ -a ] pid ...
       kill -l [ signal ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.prm
Type: application/octet-stream
Size: 3263 bytes
Desc: not available
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20151124/799568e6/attachment-0001.obj>


More information about the Aspect-devel mailing list