CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

C Compiler for CFD Programmes

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By andy_
  • 1 Post By andy_

Reply
 
LinkBack Thread Tools Display Modes
Old   March 10, 2014, 05:27
Default C Compiler for CFD Programmes
  #1
New Member
 
Santhosh Kumar
Join Date: Oct 2012
Posts: 7
Rep Power: 4
avsksan is on a distinguished road
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.
avsksan is offline   Reply With Quote

Old   March 10, 2014, 06:33
Default
  #2
Senior Member
 
andy
Join Date: May 2009
Posts: 129
Rep Power: 8
andy_ is on a distinguished road
Quote:
Originally Posted by avsksan View Post
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.
Code Blocks is not a compiler it is an Integrated Development Environment (IDE). The C compiler is a separate program which the IDE will call when you click on the button to compile. Which compiler are you using?

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?
avsksan likes this.
andy_ is offline   Reply With Quote

Old   March 11, 2014, 04:18
Default
  #3
New Member
 
Santhosh Kumar
Join Date: Oct 2012
Posts: 7
Rep Power: 4
avsksan is on a distinguished road
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.
avsksan is offline   Reply With Quote

Old   March 11, 2014, 06:05
Default
  #4
Senior Member
 
andy
Join Date: May 2009
Posts: 129
Rep Power: 8
andy_ is on a distinguished road
Quote:
Originally Posted by avsksan View Post
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.
Is the generated code 32 bit or 64 bit? Even if you are on a 64 bit computer it is common to generate 32 bit code.

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.
avsksan likes this.
andy_ is offline   Reply With Quote

Old   March 11, 2014, 23:23
Default
  #5
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 7
shirazbj is on a distinguished road
Quote:
Originally Posted by avsksan View Post
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.
You might installed the gcc while you install code block.

You can use that gcc inside a DOS terminal without using the code block.
shirazbj is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 15: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 11:16
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Fortran compiler Arnab CD-adapco 5 September 14, 2004 03:59


All times are GMT -4. The time now is 20:07.