Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Nusc
  • Order by date
  1. Nusc

    Compiling

    I just want to enter a pause statement in the code without using terminal so I can verify values for variables, etc. Like the use of the exclamation mark in MATLAB. Is there no such thing?
  2. Nusc

    Compiling

    If I want to pause the running code, what is the command to do this? They took out the PAUSE function.
  3. Nusc

    Compiling

    I have removed all lines containing common and the code compiles. #1. Is common a redundant feature? #2. I get results but with error: Program received signal SIGSEGV: Segmentation fault - invalid memory reference. Backtrace for this error: #3. write(6,*) '======================='...
  4. Nusc

    Compiling

    subroutine function(id) implicit real*8(a-h,o-z) dimension alt(900),xvariable(900),yvariable(900),constant1(900),constant2(900) dimension fxn1(900),fxn2(900) common/op/alt,constant1,constant2,a1,b1,a2,b2,n2 gives: filename.f:395.16: common/op/alt,constant1,constant2,a1,b1,a2,b2,n2 1...
  5. Nusc

    Compiling

    So back to the other posts: I should remove all the 'pause' statements and recompile without free form. And back to the other error: filename.f:395.16: common/op/help,constant1,constant2,a1,b1,a2,b2,n2 1 I will paste part of the source code as expected...
  6. Nusc

    Compiling

    Does what start in column 7? I am using Gedit, at the bottom right hand side it says Fortran 95. There is no option for Fortran 77. Do you advise indenting my code?
  7. Nusc

    Compiling

    gfortran testcode.exe testcode.f program HelloWorld write (*,*) 'Hello, world!' ! This is an inline comment end program HelloWorld I get the following: testcode.f:1.2: program HelloWorld 1 Error: Non-numeric character in statement label at (1) testcode.f:1.2: program HelloWorld...
  8. Nusc

    Compiling

    Hi FJacq, from the above posts, this is a F77 program. I'm sure it worked at some point without error. filename.f:427.19: subroutine myownfxn(x,y) 2 Error: COMMON block 'myownfxn' at (1) uses the same global identifier as entity at (2) --------------------------------------------------- Do I...
  9. Nusc

    Compiling

    Hi xwb, thanks for your help. That seems to have resolved some of the errors, now I receive the following messages: filename.f:42.72: pause 1 Warning: Deleted feature: PAUSE statement at (1) What does this...
  10. Nusc

    Compiling

    I believe the issue comes with the existing comments: c --- c --- blah c --- blah c --- blah c --- blah c --- Do you know if the original files were compiled in F77 F90 or F95? I'm using gfortran.
  11. Nusc

    Compiling

    Hi all, it's been a long time since I touched Fortran. I am trying to compile old Fortran (.f) files. I am using Gygwin executing the following command: gfortran -ffree-form -o filename.exe filename.f I get the following error over 25 times: Error: Unclassifiable statement at (1) I'm not...

Part and Inventory Search

Back
Top