Questions tagged [silverfrost-fortran]

This tag is for questions specifically relating to the Silverfrost Fortran compiler for Windows, also known as Salford FTN95. Questions about Fortran more widely should use the Fortran tag.

Silverfrost Fortran compiler is a Fortran compiler for Windows. It is under active development. The compiler is available with commercial, academic, and personal (free) licenses. The latest release is Silverfrost FTN95 version 8.10, released in February 2017.

Links:

Silverfrost home page

Silverfrost Wikipedia article

9 questions
3
votes
1 answer

How to include a module from a different file in Fortran 95?

The question is obvious I think, although I googled it, I could not find any solutions. I want to split my source code to keep it more maintainable. How can I reference a module in another file?
Hasan
  • 2,444
  • 3
  • 30
  • 44
2
votes
0 answers

Does GMP work with gfortran? Is there an arbitrary precision arithmetic option for Silverfrost Fortran?

I'm working on some Fortran things, probably Fortran90 or Fortran95, and was wondering if GMP works with gfortran compiler. If so, how would one use the arbitrary precision arithmetic in gfortran? Also, does the Silverfrost Fortran compiler have an…
fishermanhat
  • 195
  • 1
  • 8
1
vote
0 answers

Double precision in Fortran for trignometric functions

I am using the following code to calculate cos for pi/2 in Fortran. program precision_Fortran IMPLICIT NONE !!integer, parameter :: dp = kind(1.0d0) !!Gives same result as line below integer, parameter :: dp = selected_real_kind(15, 307) …
ZeroTwo
  • 307
  • 1
  • 3
  • 12
1
vote
1 answer

Defining a subroutine in another subroutine

Is it possible in Fortran to define a subroutine within another subroutine? When I try something like SUBROUTINE test1(...) ! do some stuff CALL test2(...) SUBROUTINE test2(...) ! do some stuff END SUBROUTINE test2 END SUBROUTINE…
Seb
  • 33
  • 4
0
votes
0 answers

Calling Fortran DLL in Matlab with the help of C++

I have a fortran code and want to run it in MATLAB (2019). I want to stick with silverfrost (64-bit) compiler (FTN95) to compile my initial fortran code. In order to find out how it works, I started with a simple code in Fortran:…
Moji
  • 89
  • 3
0
votes
0 answers

Debugging access violation error: writing to 2071E05A0 instead of 3071E05A0

Final edit: Some users on the silverfrost forums directed me very helpfully, to a simplification of the code and a solution. The issue can be replicated using the following code: PROGRAM ML14ERROR INTEGER :: origzn, destzn …
ahalls
  • 1
  • 1
0
votes
0 answers

Fortran Silverfrost compiler creates .exes that can't be deleted

I'm on Windows 10 on a new computer, not from work. Every now and then, seemingly at random, my Silverfrost compiler (up to date as of 28th July 2017) will create a .exe file when I compile that requests admin rights to delete, move, or modify. The…
J.Doe
  • 61
  • 1
  • 2
0
votes
0 answers

Attempt to call a routine with argument as a procedure when a real was required

I have a Fortran program that compiles without problems, but then gets an error: Attempt to call a routine with argument number one as a procedure when a real(kind=2) was required ROOTS!X_ROOT - in file exercise2base.f90 at line 20 [+0074] main…
Yoni
  • 151
  • 5
0
votes
1 answer

Why are resulsts of silverfrost and gfortran different?

When I run my code with Silverfrost fortran, the result is -2.987531633638E-02. But with gfortran (under cygwin and ubuntu linux) it is -2.9875316336381942E-002. My code is here: program…