- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all:
Is there any way to compile with global double precision, i.e., setting all constants,variables and intrinsics in double precision a la UNIX -r8 ?
Thanks,
Raul
Is there any way to compile with global double precision, i.e., setting all constants,variables and intrinsics in double precision a la UNIX -r8 ?
Thanks,
Raul
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. /real_size:64, though I think -r8 is also accepted. In DevStudio, its a setting under Fortran..Floating Point. Note that if you explicitly declare a variable REAL*4, it stays REAL*4. If you say just REAL, then it will get doubled.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve: I added your compile option (it is not available as a DevStudio Fortran/Floating Point choice, and I can't find it anywhere in the documentation), ran a CFD code, and got slightly different results, so I take it that double precision "took". Much obliged by your timely help. Raul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From DevStudio go to Project Settings|Fortran|Fortran data. You can define a default real and integer kind there.
Walter Kramer
Walter Kramer
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page