Setup Fortran develop environment on SciTE

copyright (C) qingfeng Xia 2011-2020 CC-BY-NC 4.0

(1) add in  user  properties

(2) a file template for fortran *.90

download the file  NewFortranSourceFile, and put into $HOME/Templates/

add a file suffix such as “.f90”

then  in any folder, just right click “New->NewFortranSourceFile.f90”

##################fortran############################if PLAT_GTK fc77=f77 -c -o $(FileName).o $(FileNameExt) fc90=gfortran  -o $(FileName) $(FileNameExt)
# add f03 file suportfilter.fortran=Fortran (f for f90 f95 f03 f2k)|*.f;*.for;*.f90;*.f95;*.f03;*.f2k|file.patterns.f95=*.f90;*.f95;*.f03
#Then, press key F5, the single file will be compiled and run.

#There should be no space within the source file name !#it is only for single source file program,
# set gfortran compiler options(variating greatly between compiler):

# force  fortran standard   -std=<std>

# set default kind for real int char: -fdefault-double-8  -fdefault-integer-8  -fdefault-real-8 # initialize global var to zero:            -finit-integer=n -finit-real=<zero|inf|-inf|nan|snan>          # -finit-logical=<true|false> -finit-character=n #C90 requires all declarations to be at the beginnign of the block:    -pedanticfcopts= -O1 -finit-integer=0 -finit-real=zero
command.compile.*.f90=$(fc90)command.build.*.f90=makecommand.go.*.f90= $(fc90) ; ./$(FileName)
command.compile.*.f95=$(fc90)command.build.*.f95=makecommand.go.*.f95= $(fc90) ; ./$(FileName)
command.compile.*.f03=$(fc90)command.build.*.f03=makecommand.go.*.f03= $(fc90); ./$(FileName)

 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 



CC-BY-NC 4.0 licensed free for non-commercial usage
Author: Qingfeng XIA
copyright (C) 2011-2020
http://www.iesensor.com
please keep the original link in your reference.
http://www.iesensor.com/blog/2011/06/23/setup-fortran-develop-environment-on-scite/
This entry was posted in Uncategorized. Bookmark the permalink.