|
[Sponsors] |
March 10, 2014, 04:27 |
C Compiler for CFD Programmes
|
#1 |
New Member
Santhosh Kumar
Join Date: Oct 2012
Posts: 7
Rep Power: 13 |
Dear all,
I am using code blocks for smaller level c programs to solve CFD problems. but its time to move on. The problem with Code Blocks is that it can't handle large matrix(its not using more than 200MB of RAM in my system, Even though i have 4GB of RAM). Is there any other Compliers, software or options that uses maximum RAM memory to run such programs. Please help me out of this. Thank you. |
|
March 10, 2014, 05:33 |
|
#2 | |
Senior Member
andy
Join Date: May 2009
Posts: 270
Rep Power: 17 |
Quote:
If a C program cannot allocate enough memory it will either write out an error message and stop or it will crash. Which is your program doing? |
||
March 11, 2014, 03:18 |
|
#3 |
New Member
Santhosh Kumar
Join Date: Oct 2012
Posts: 7
Rep Power: 13 |
I am using default compiler in Windows 8. It detected as gcc compiler. Which compiler should I use?
By the way it crashes(i.e., Programm stops working). What should i do? Please advice. |
|
March 11, 2014, 05:05 |
|
#4 | |
Senior Member
andy
Join Date: May 2009
Posts: 270
Rep Power: 17 |
Quote:
The maximum address for 32 bits is 4GB but I think on Windows you would need to knock off memory for the graphics card and a few other bits and bobs. I would suggest allocating 1GB and seeing if that works then 2GB and seeing if that works, etc... gcc is not the native Windows C compiler but it is unlikely to be the cause of restrictions on allocated memory. You are allocating memory on the heap with malloc? You are checking the returned pointer? If there is insufficient memory the pointer should be null. |
||
March 11, 2014, 22:23 |
|
#5 | |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 |
Quote:
You can use that gcc inside a DOS terminal without using the code block. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error installing OpenFOAM 2.2.0 on CentOS 6.4 | CGMaioli | OpenFOAM Installation | 34 | February 24, 2014 14:06 |
checking for C++ compiler default output file name... configure: error: C++ compiler | dhxlxz | SU2 Installation | 2 | September 7, 2013 11:08 |
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) | sfigato | OpenFOAM Installation | 22 | January 31, 2013 10:16 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
Fortran compiler | Arnab | Siemens | 5 | September 14, 2004 03:59 |