InterpolateMeshToMesh

Clearly defined bug reports and their fixes
Post Reply
joeatodd
Posts: 36
Joined: 02 Feb 2012, 18:49
Antispam: Yes

InterpolateMeshToMesh

Post by joeatodd »

Hi all,

I think I've found a bug in the InterpolateMeshToMesh routine. This only seems to have cropped up since this was moved out of the Lists.src file and into its own InterpolateMeshToMesh.f90

I get a segfault when I call the subroutine InterpolateMeshToMesh without a Projector variable:

Code: Select all

CALL InterpolateMeshToMesh( Mesh, EvalMesh, Mesh % Variables, EvalMesh % Variables, .FALSE. )
This function, in turn, calls the InterpolateMeshToMeshQ function:

Code: Select all

CALL InterpolateMeshToMeshQ( OldMesh, NewMesh, OldVariables, &
NewVariables, UseQuadrantTree, Projector, MaskName )
This subroutine then segfaults upon attempting to assign:

Code: Select all

Projector => NewMesh % Projector
Like I said, this has only been happening since InterpolateMeshToMesh was moved out of the Lists.src file. As far as I can tell, the only change to the actual code is the addition of the interface between InterpolateMeshToMesh and InterpolateMeshToMeshQ. I'm a bit stumped as to what exactly is going wrong.

Perhaps a check for the projector variable within InterpolateMeshToMesh would work? If the projector variable is not present, InterpolateMeshToMeshQ could be called without this variable.

Cheers,

Joe
Post Reply