[Bug fortran/98701] I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 --- Comment #16 from Bahram.shahrooz at uc dot edu --- I spent a good chunk of today to debug. The culprit was two variables that had not been set equal to 0. I get the same results with g77 on Windows, GFortran on Mac Big Sur, & AbsoftTools ( I downloaded a trial version to help me debug) on Mac Big Sur You guys are so helpful. I truly appreciate your time and.
[Bug fortran/98701] I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 --- Comment #13 from Bahram.shahrooz at uc dot edu --- Thank you for your help. I really appreciate your time.
[Bug fortran/98701] I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 --- Comment #11 from Bahram.shahrooz at uc dot edu --- Thanks! This is how I compiled: gfortran FiberAnalysis.f -finit-real=nan -fcheck=all -ffpe-trap=zero,invalid -o FiberAnalysis_v2 This what I get after running (the answers are correct): Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation. Backtrace for this error: #0 0x105c4ad3d #1 0x105c4a16d #2 0x7fff203c4d7c #3 0x105c34e45 #4 0x105c3c653 #5 0x105c3cae6 zsh: floating point exception /Users/bahram/FiberAnalysis_v2 Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. Deleting expired sessions...none found. Do you've any suggestions for how to trace the source of error so I can fix the code?
[Bug fortran/98701] I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 --- Comment #9 from Bahram.shahrooz at uc dot edu --- Yes, thank you for finding this bug. Things didn't change after changing estart to estrt. Sorry, I don't know how to use -freal-init=nan. I tried to use it like this but got an error. % gfortran FiberAnalysis.f -freal-init=nan -o FiberAnalysis gfortran: error: unrecognized command-line option '-freal-init=nan'
[Bug fortran/98701] I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 --- Comment #6 from Bahram.shahrooz at uc dot edu --- I get wrong answers doing this: gfortran FiberAnalysis.f -o FiberAnalysis I get correct answers doing this: gfortran FiberAnalysis.f -fcheck=all -ffpe-trap=zero,invalid -o FiberAnalysis Moment Axial_Load 3244.08910-215.38970 3432.22199-190.65966 3594.93500-168.86785 3734.50302-149.77519 3842.77168-134.14558 3986.24344-114.80934 4115.25069 -97.21038 4230.37015 -81.27311 4323.74191 -67.84354 4442.09009 -51.57463 4551.67144 -36.41379 4653.40529 -22.24901 4748.46682 -8.91886 4844.11684 4.77310 4933.55651 17.64818 5017.35901 29.77892 5097.44257 41.41472 5193.49624 55.17913 5275.53074 67.17330 5351.16344 78.34124
[Bug fortran/98701] I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 --- Comment #4 from Bahram.shahrooz at uc dot edu --- I compiled with the suggested options (below) and now the code gives the same result as g77. -fcheck=all -ffpe-trap=zero,invalid Things look good now! Sorry for starting this bug report prematurely, and many thanks for your help!!!
[Bug fortran/98701] I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 --- Comment #3 from Bahram.shahrooz at uc dot edu --- Created attachment 49979 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49979=edit source code Sorry, I had to zip several files. Readme file in Archive.zip explains what the files are. Here's how I compiled: gfortran FiberAnalysis.f -o0 -o FiberAnalysis g77 -o0 FiberAnalysis.f -o FiberAnalysis
[Bug fortran/98701] New: I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 Bug ID: 98701 Summary: I compiled a program with gfortran on Mac (Big Sur, version 11.1) and g77 on Windows 10. I get two very different results for identical input files with the results from the one compiled by gfortran being wrong. Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: Bahram.shahrooz at uc dot edu Target Milestone: --- Created attachment 49978 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49978=edit report from gfortran