AVAILABLE MEMORY
AVAILABLE MEMORY
(OP)
please, how can I get an information on the available memory for allocation? is there a specific FORTRAN command? thanks for your help
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: AVAILABLE MEMORY
RE: AVAILABLE MEMORY
temporarily i solved it in this way:
DO WHILE (.NOT.ALLOCATED(MX))
IF (.NOT.ALLOCATED(MX)) ALLOCATE (MX(1:NG,1:NG,1:NG), STAT = ERR_ALLOC)
IF (ERR_ALLOC.NE.0) NG = NG - 50
END DO
WRITE (0, *) 'ALLOCATED ', NG**3 / 1000000, ' MEGABYTES.'