Comments (5)
A potential fix : mathrack@b796a12
from incompact3d.
After investigation, the absence of "deallocate" statements should not leak memory because the array is not declared with the save attribute. https://community.intel.com/t5/Intel-Fortran-Compiler/Retention-of-allocated-memory-within-a-subroutine-that-is-called/td-p/1072829
from incompact3d.
It might still be worth doing deallocate:
- It makes it explicit what is happening
- Different compilers seem to treat SAVE (or lack of) differently from what I've read, so I wouldn't rely on it :)
from incompact3d.
Makes sense. The fix I have proposed could be simplified : at the end of the subroutines, we could add
#ifndef OVERWRITE
if (allocated(wk1)) deallocate(wk1)
#endif
from incompact3d.
👍 looks good to me
from incompact3d.
Related Issues (20)
- Error while compiling Xcompact3D in HPC HOT 9
- The simulation terminates automatically without any divergence. HOT 13
- A small typo in the code HOT 1
- Verification of restart can crash the simulation HOT 9
- Issues with dynamic Smagorinsky model HOT 1
- Unable to read epsilon function from a dat.file
- Error while creating custom geometry in BC-Cylinder.f90 HOT 5
- Typo in init_xcompact3d subroutine HOT 1
- how can we apply velocity in a angular way i.e in a inclined direction in inflow? HOT 2
- BC-Pipe-flow.f90 not included in src/CMakeLists.txt HOT 3
- Include the CMake build in the CI
- Incorrect boundary conditions for immersed solids in z direction HOT 2
- compile error with ADIOS2 support on HOT 3
- Requirement for a proper documentation of the software.
- build problem HOT 1
- runtime error with Intel ifx compiler HOT 4
- Using Periodic B.C. with Alternating Forcing Direction IBM gives error HOT 3
- Fortran format not wide enough to display output HOT 1
- Potential issue with CMake 3.22.5 / GNU 12.3.0 / OpenMPI 5.0.3 HOT 4
- Possibly there is a mistake about the dynamic Smagorinsky model, and please check 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 incompact3d.