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

promote real to double precisio with VISUALfortran

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 11, 2008, 12:36
Default promote real to double precisio with VISUALfortran
  #1
Alberto
Guest
 
Posts: n/a
Hallo I have a code for shallow water equations written in Fortran. there is the option "promote real to double precision" with visual fortran?Because my variables are declared as:

REAL NAME1,NAME2,NAME3

and I want just to compile sometimes in single and simetimes in double precision just changing the option without change the code thanks so much Alberto
  Reply With Quote

Old   March 12, 2008, 03:19
Default Re: promote real to double precisio with VISUALfor
  #2
bohluly
Guest
 
Posts: n/a
u can use this method !

parameter (n=4)

real(n) name1, .....

if you use modul for data base of variables it will be very easy. it needs to chaing only in main module of your data base

module var_database

parameter (n=4) 'or n=8'

real(n) name1, .....

real(n) name3, .....

end module ... . . .

subroutine sub1

use var_database

end sub1

  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
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 06:09
Continuing User Defined Real Gas Model issues aeroman FLUENT 5 May 1, 2015 02:57
New densitybased solver AeroFoam giulio_romanelli OpenFOAM Running, Solving & CFD 39 October 8, 2013 02:37
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


All times are GMT -4. The time now is 04:41.