- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good afternoon,
Working with a program written in fortran.
Details on the compilation
Once compiled, the program generates an executable that will be used to run data.
When I run the executable with input generated by compiling in 32 bit machine, the output is correct. But when I run the same input with the executable generated by compiling 64-bit machine, the answer is not equal. For 64-bit output data which are all numerically anulo. What could be.
Working with a program written in fortran.
Details on the compilation
Once compiled, the program generates an executable that will be used to run data.
When I run the executable with input generated by compiling in 32 bit machine, the output is correct. But when I run the same input with the executable generated by compiling 64-bit machine, the answer is not equal. For 64-bit output data which are all numerically anulo. What could be.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might try experimenting with compiler flags -real-size 32 /64/128 and -integer-size 32 /64/128 . This will force the compiler to change the default integer or real sizes.
Otherwise, if you attached a small example, then we could analyse the problem in more detail.
Best!
-Udit
Otherwise, if you attached a small example, then we could analyse the problem in more detail.
Best!
-Udit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm sending the makefile, the subroutine that is in trouble and the main file.
Start by studying the makefile, and then finally the main subroutine.
The problem is in the subroutine spdir.f90
Any questions please contact us, thanks !!!
Start by studying the makefile, and then finally the main subroutine.
The problem is in the subroutine spdir.f90
Any questions please contact us, thanks !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sara, I don't see that you have attached the files here. Please make sure you follow the instructions in the link below and click the option to attach the file.

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