# Error allocating memory

**URL:** <https://calculix.discourse.group/t/error-allocating-memory/1429>\
**Category:** Uncategorized\
**Created:** [January 3, 2023, 10:46am UTC](https://calculix.discourse.group/t/error-allocating-memory/1429 "2023-01-03T10:46:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Michal](https://calculix.discourse.group/u/Michal)\
**Post date:** [January 3, 2023, 10:46am UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/1 "2023-01-03T10:46:40Z")

</div>

Has anybody had such problem ? I have exactly the same problem (as below) my first action was Prepomax forum but admin said that this maight be a calculix problem . Can anybody help ?

 ![718](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/9/93092bf7e82885dd81a6612129f7da745b505341.jpeg)

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [January 3, 2023, 12:00pm UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/2 "2023-01-03T12:00:14Z")

</div>

Hi Michal,

I can see there are 1.8M nodes on that file. It is a big number.  
How much Ram do you have on your computer?  
Which solver are you using?

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [January 3, 2023, 12:14pm UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/3 "2023-01-03T12:14:21Z")

</div>

Based on the discussion on PrePoMax forum, I’m afraid that it won’t work until you reduce the density of that mesh or switch to shell elements.

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [January 3, 2023, 12:19pm UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/4 "2023-01-03T12:19:02Z")

</div>

probably you have to use the i8 version of ccx (and then see if you have enough memory to run to completion) for that problem size.

---

<div class="post-metadata">

**Author:** ![Michal](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Michal](https://calculix.discourse.group/u/Michal)\
**Post date:** [January 3, 2023, 12:32pm UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/5 "2023-01-03T12:32:56Z")

</div>

I have model with similar problem ca 3,2 million of elements , I have ram 64 GB and I use pardiso

where can I find i8 version of ccx what does mean this option  
best regards

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [January 3, 2023, 8:50pm UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/6 "2023-01-03T20:50:59Z")

</div>

check out this thread, I think I got it from here…but not sure (mine is v2.19 for windows)…[CalculiX i8 and mingw - #7 by jbr](https://calculix.discourse.group/t/calculix-i8-and-mingw/134/7)

anyway 64GB of ram should be enough for about 2 Million equations (dofs) according to the manual, so keep it in mind.

from the installation guide [http://www.dhondt.de/ccx\_2.20.README.INSTALL](http://www.dhondt.de/ccx_2.20.README.INSTALL) :

* * *

USING CALCULIX with 8 byte per integer

* * *

This may be necessary for really big models. Right now, there is a file  
Makefile\_i8 showing you how it works. The integers in the FORTRAN files must  
be compiled with the option -fdefault-integer-8 (for the GNU compiler). This  
tells the compiler to consider all integers in the FORTRAN files as  
8-byte integers. For the C-files, the flag -DLONGLONG must be added to the  
CFLAGS. Right now, the CalculiX distribution assumes that you also generate  
a integer_8 version of ARPACK (use the above FORTRAN flag) and an  
integer_8 version of PARDISO (of course only if you use any if these, i.e.  
if you have the flags -DPARDISO and -DARPACK in your Makefile). The  
SPOOLES distribution, however, is assumed to be an integer _4, since it  
is not known that an integer_8 version of SPOOLES has already been made.

---

<div class="post-metadata">

**Author:** ![Disla](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/disla/32/3548_2.png) [@Disla](https://calculix.discourse.group/u/Disla)\
**Post date:** [January 3, 2023, 11:00pm UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/7 "2023-01-03T23:00:28Z")

</div>

ccx 2.19 included both static and dynamic i8 versions already compiled.  
Not sure where to download it now. Mine was probably from CalculiX main page.

* * *

CalculiX Version 2.19 i8, Copyright(C) 1998-2021 Guido Dhondt  
CalculiX comes with ABSOLUTELY NO WARRANTY. This is free  
software, and you are welcome to redistribute it under  
certain conditions, see gpl.htm

* * *

![screenshot.51](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/1/1b174e549d4b65b10f7afb599973b40c6964ae1d.jpeg)

---

<div class="post-metadata">

**Author:** ![Michal](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Michal](https://calculix.discourse.group/u/Michal)\
**Post date:** [January 4, 2023, 1:30pm UTC](https://calculix.discourse.group/t/error-allocating-memory/1429/8 "2023-01-04T13:30:11Z")

</div>

Could anybody prepare complete kit of solvers for PPM/ Calculix for Windows to solve large problems . So far I have used several variants of 2.19 and 2.20 for windows os without success . I stiil can not resolve model with 4,5 milion of nodes even using Iterative solvers (error in u\_realloc: allallocating memory) I have also searched in PREPOMAX forum. I have used dynamici8.exe but it also doesn’t work  
best regards
