Recent content by dibloff
-
D
Fortran What Does This Fortran Statement Do?
Alephzero Thanks a lot. This makes completely perfect sense. A.- dibloff
- Post #3
- Forum: Programming and Computer Science
-
D
Fortran What Does This Fortran Statement Do?
Hi Community! I'm wondering what this Fortran statement does, per your opinion: IF(PMAX-P(I))16,16,17 16 PMAX=P(I) ICAMAX=I 17 CONTINUE This was done in Fortran 77. I'm trying to convert it to VB, and I Google-d it, researched it, but it's hard to understand. The IF statement...- dibloff
- Thread
- Replies: 2
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
Gave up on the input file. Started to put the direct inputs (A=const) into the main program. It did not run. Then I tried to put it into the first subroutine – all 72 inputs. Then I realized that some of the inputs are vectors (array). If I put a single value it works, but if I declare it as an...- dibloff
- Post #20
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
To all. I’m finally done with the main part of the code. 2485 line, almost half of which are comment lines. I can compile the code with GNU Fortran (11 and 95 mix-ish), but when I run the exe file it’ll crash (gan.exe has encountered a problem and needs to close. We are sorry for the...- dibloff
- Post #19
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
JtBell and TheoMcCloskey. Makes perfect sense what you’re saying. I tried to create a file in the working directory – prn.txt – but windows won’t let me do it (a file with the same name already exists, error message). I’m only 35 but I still remember using COM1 and COM2 back in the school. So...- dibloff
- Post #17
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
AlephZero. Thanks for the comments. You were right. I added the rest of the program over the weekend, and now it works fine. I can generate the exe file, and run it w/o a problem. One tiny issue is that it’s running with 0 inputs. I still need to figure out how to plug in the input file. I did...- dibloff
- Post #11
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
Hi Guys. I’m trying to compile this code from an old book. You can find the book here: http://books.google.com/books?id=xW58_KhU3TUC&pg=PA2&dq=ic+engine+by+v+ganesan&hl=en&ei=ADnFTunvBsW30AHEp9S3BA&sa=X&oi=book_result&ct=result&resnum=4&sqi=2&ved=0CDwQ6AEwAw#v=onepage&q&f=false" Some pages are...- dibloff
- Post #9
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
TheoMCCloskey. It worked. Thank you so much for your help. I think I need to learn about this free format/non free format thing. A.- dibloff
- Post #7
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
Hi AlephZero. Thanks for the quck response. I tried to replace the 1H* with * (character) (only) and '*' (apostrophe character apostrophe) none of those had helped. I'm getting the same gibberish 2 page long error message in CMD. I'm using fort99.zip compiler from here...- dibloff
- Post #4
- Forum: Programming and Computer Science
-
D
Fortran Help Compiling GNU Fortran Code with 2000 Lines
Hi Everyone. I'm trying to compile an old Fortran code (~2000 lines) with GNU Fortran and could not make it work yet. The code is from an old book, and I do not know which Fortran compiler was used to make it work. I’m guessing it’s 77 cause in many places the program uses the “common...- dibloff
- Thread
- Fortran
- Replies: 22
- Forum: Programming and Computer Science