Comments (10)
Hi @azacharos thanks for the bug report. Can you please attach the files needed to reproduce this issue? (The smaller the better).
from sparta.
Hi,
I attached the zip file that contains a smaller case that appears the same problem after 5000 time steps.
I am using the mpi version of the code with the flag DSPARTA_BIGBIG on 12 cpu cores.
from sparta.
Thank you, I'll take a look.
from sparta.
I can reproduce a segfault if I use this in your reproducer:
run 2000
adapt_grid all refine particle 10 4
write_restart flow.restart.final
from sparta.
The error appears also if the value option is used in the adapt_grid.
from sparta.
Yeah, I am debugging now, should have a fix soon.
from sparta.
The issue is that childlist
here https://github.com/sparta/sparta/blob/master/src/adapt_grid.cpp#L503 is too small. The nx
ny
and nz
default to 2x2x1 unless you use the cells
keyword, but you need 20x20x1. I may need help from @sjplimp to get the logic right.
from sparta.
As a workaround, you can set childlist
bigger. You need a factor of 100 (since 20x20x1 divided by 2x2x1 = 100).
$ git diff adapt_grid.cpp
diff --git a/src/adapt_grid.cpp b/src/adapt_grid.cpp
index 961c993..b72a43c 100644
--- a/src/adapt_grid.cpp
+++ b/src/adapt_grid.cpp
@@ -500,7 +500,7 @@ void AdaptGrid::setup(int iter)
// list of new cell indices for one refined cell
- childlist = new int[nx*ny*nz];
+ childlist = new int[nx*ny*nz*100];
// rlist and clist for refine/coarsen
from sparta.
Here is a more minimal reproducer.
from sparta.
from sparta.
Related Issues (20)
- Qusetion about 'adapt_grid' command & 'fix adapt' command HOT 1
- Filter HOT 2
- Move/Surf HOT 7
- Cannot use region-style group command to create grid group HOT 2
- helium
- Normal flag in fix_emit_surf HOT 9
- Errors when removing surfaces from simulation HOT 4
- Particle count using transparent surface and issue with multiple core processors HOT 3
- tce/qk style HOT 3
- surf_react_adsorb LH1 reaction HOT 2
- Development of improved subsonic boundary condition and mass flow rate boundary condition HOT 9
- Fix emit/surf command fails when using equals-style variable for setting particle number HOT 3
- Configuration to avoid in order to cutcell algorithm to work or bug ?
- move_surf command
- Issue compiling SPARTA on ALCF's Polaris computer with kokkos enabled HOT 5
- Grid cell corner points on boundary marked as unknown HOT 2
- Illegal group command HOT 2
- Outdated documentation pages related to Section 6 of Manual
- Possible typos in adapt_grid manual page HOT 1
- Typo in dump_modify document HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparta.