CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

user routine, user funcion, or fortran compile effect on the memroy?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2009, 14:24
Thumbs down user routine, user funcion, or fortran compile effect on the memroy?
  #1
New Member
 
sean strand
Join Date: Apr 2009
Posts: 2
Rep Power: 0
princeps11 is on a distinguished road
Dear fellows,

I have tried to run a transient model.

When I set a basic transient case, it works without issue.

but it makes error message by memory problem when I use user routine, user function and fortran complier(actually it is based on the HAVC sample in tutorial).

Here is memory condition

this is memory allocation in the case of basic transient model


+--------------------------------------------------------------------+
| Memory Allocated for Run (Actual usage may be less) |
+--------------------------------------------------------------------+
Data Type Kwords Words/Node Words/Elem Kbytes Bytes/Node

Real 133872.5 201.94 40.83 522939.4 807.76
Integer 232519.9 350.75 70.91 908280.7 1402.98
Character 2290.4 3.45 0.70 2236.7 3.45
Logical 51.0 0.08 0.02 199.3 0.31
Double 477.3 0.72 0.15 3728.7 5.76


This is another memroy allocation in the case using fortran compiler.


+--------------------------------------------------------------------+
| Memory Allocated for Run (Actual usage may be less) |
+--------------------------------------------------------------------+
Data Type Kwords Words/Node Words/Elem Kbytes Bytes/Node

Real 130494.9 196.85 39.80 509745.7 787.38
Integer 231455.7 349.14 70.59 904123.8 1396.56
Character 2289.2 3.45 0.70 2235.6 3.45
Logical 50.9 0.08 0.02 198.7 0.31
Double 475.8 0.72 0.15 3716.9 5.74

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| *** Run-time memory allocation error *** |
| Not enough free memory is currently available on the system. |
| Could not allocate requested memory - exiting! |
| |
| |
| |
+--------------------------------------------------------------------+

As you can see, using fortran compiler needs samller memory to run than general transient model but it makes error...

Do you guys believe that user function and user routine effect on the memory to run?

How do I get out from this error?

Thank you for your interest
princeps11 is offline   Reply With Quote

Old   May 13, 2009, 18:37
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Hi,

I am no expert on fortran in CFX but I suspect if you allocate memory in the fortran subroutine it will not be included in the CFX memory reporting and therefore if the routine gobbles up too much memory the solver won't know about it until it runs out of memory and crashes.

Glenn Horrocks
ghorrocks is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
CFX 10 User Routine NOT in Fortran Andre CFX 14 August 8, 2006 23:03
user defined function cfduser CFX 0 April 29, 2006 10:58
Particle Injection User Fortran Routine Adam CFX 5 December 13, 2005 03:16


All times are GMT -4. The time now is 02:49.