Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Violation error when using plume inflow boundaries #18

Open
jaime-almeida opened this issue Feb 15, 2024 · 4 comments
Open

Comments

@jaime-almeida
Copy link

Hello!

I'm trying to use LaMEM to run a 3D model which requires the existence of a plume boundary. I've used these boundaries before with success, but after updating the code recently I've been met with this error:


[124]PETSC ERROR: ------------------------------------------------------------------------
[124]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[124]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[124]PETSC ERROR: or see https://petsc.org/release/faq/#valgrind and https://petsc.org/release/faq/
[124]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run
[124]PETSC ERROR: to get more information on the crash.
[124]PETSC ERROR: Run with -malloc_debug to check if memory corruption is causing the crash.
--------------------------------------------------------------------------

The plume inflow was defined like this:

# Set a plume in the plateau region:
        Plume_InflowBoundary 	= 	1	
        Plume_Type                     =      Inflow_Type
	Plume_Dimension           =	3D	
	Plume_Phase 		        =	7	
	Plume_Depth		        = 	0
	Plume_Temperature 	=	1700	
	Plume_Inflow_Velocity 	= 	15.0
	Plume_VelocityType        =	Gaussian
	Plume_Center 		        =	-200.0 -100.0
	Plume_Radius 		        =	50		

The only change from my previously used plumes are the coordinates and the number of the inflow phase. It was attempting to run on 128 cores.

@boriskaus
Copy link
Contributor

Can you attach the input file so we can actually reproduce this? Does this also occur for the test that we have in place for this?

@boriskaus
Copy link
Contributor

how was this solved?

@jaime-almeida
Copy link
Author

jaime-almeida commented Mar 7, 2024 via email

@jaime-almeida jaime-almeida reopened this Mar 25, 2024
@jaime-almeida
Copy link
Author

Sorry to reopen this. I did it earlier but then remembered to first update LaMEM to the latest version to make sure it hadn't been fixed already. I did previously "fix" my issue by not using a Gaussian plume but it really wasn't a fix.

I've recently tried to run older models with working plumes and they raise the same Segmentation Violation errors when attempted. The test models do work though, I've ran a simple gaussian plume there without issue. I I've attached the input file as well as the MATLAB script I used to build the markers.

inputs.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants