StatElecForce - .NOT. FirstTime segmentation fault

Clearly defined bug reports and their fixes
Post Reply
nguyent
Posts: 32
Joined: 17 Apr 2012, 21:19
Antispam: Yes

StatElecForce - .NOT. FirstTime segmentation fault

Post by nguyent »

Using Elmer 7, Rev 5763. On second timestep, Mesh is not pointing to anything and causes a segmentation fault in StatElecForce. Mesh does not point to anything on second timestep because line 87 only runs if it is first timestep:

Code: Select all

86:  IF ( FirstTime ) THEN
87:    Mesh => Solver % Mesh
88:    NULLIFY( Pwrk )
89:    FirstTime = .FALSE.
90:  END IF
Removing the first time check makes it work, but I don't know if doing that could break something else.

Someone else already uploaded an example of this bug a while back: viewtopic.php?f=3&t=2265
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: StatElecForce - .NOT. FirstTime segmentation fault

Post by raback »

Hi

You're right. There was a bug and this testing is also rathe stupid bacause it hardly saves any time. So I removed it on the current svn version.

Thank you for reporting.

-Peter
Post Reply