• Lijuan Yan added an answer:
    Does anyone know where to download or purchase the fortran program DISTLM for PERMANOVA (Anderson 2005)?

    Does anyone know where to download or purchase the fortran program DISTLM for PERMANOVA (Anderson 2005)? I am currently analyzing Miseq data and need it for testing the significance of the treatment on microbial community composition. Our group is going to purchase the PRIMER program, but it takes time to proceed as it is summer holiday season here.

    Lijuan Yan · University of Helsinki

    Thanks Martin. I was thinking to use R if I don't get PRIMER or DISTLM in the following week. Since I used the other Fortran program CAP that was produced by the same person M. J. Anderson, I would prefer DISTLM to R. Any way, thanks a lot for the reply.

  • João Passos added an answer:
    How can i link the abaqus(64-bit) and fortran ?

    I've tried all the solutions proposed but i did not succeed.
    I've used all versions of Abaqus.

    Is there a special case that I do not do?

    abaqus versions is : 6.12-3 , 6.13-1 , 6.13-4 , 6.14-1

    Fortran : intel fortran composer XE 2013

    Microsoft Visual studio 2012

    João Passos


    I´m using Fortran Compiler 11.1 with Visual Studio 2008. I installed Abaqus 6.14 and I´m running Windows 10 on a 64 bit machine.

    Previously I had installed the same configuration but with Abaqus 6.12. Now when I try to run I get an error saying that there is a conflict between module machine x86 and target machine x64. Never had this error before.

    Can someone help?


  • Abdel Rahim Ruby Abdel hamid Hassanain added an answer:
    How development Global Gravity Field Models like EGM96?

    I have some questions about Global Gravity Field Models (ICGFM).
    Where How to Calculate Coefficients of this model? I.e. I need the program to compute spherical harmonic analysis of EGM model.

    Abdel Rahim Ruby Abdel hamid Hassanain · Benha University

    Dear Eng, Ahmed

    Thanks for adding your answer

    this paper Failure during download

    It can be sent to email (abd_roby87@yahoo.com)

    Abdel Rahim

  • Bill Long added an answer:
    Difficulty in writing output using FORTRAN?

    Hi All, I have difficulty in writing a mix of string and string arrays  by FORTRAN, for example (the following two lines):

    write (cout,1052) (cd(ii),ii=1+1,9),(cy(ib),ib=10,(inmt*2))
    1052 format ('c=[c1',8(';c',a1),79(';c',a2),'];')

    this piece of code is working, where cd(ii) and cy(ib) are string arrays. 

    I need to write variable number of the string arrays cells (cy(ib)) followed by a bracket, so I need to replace "79" in the format line with "(inmt*2)-9", because each case has a different number of cells to be written, when I do that, it is not anymore working.

    Any ideas please?


    Bill Long · Cray

    The < > notation mentioned by Pawel Jerzy Matuszyk might work with the Intel compiler, but it is not part of Fortran - and is certainly not portable.   Formats are can be pretty complicated for people not expert in Fortran.  While there are more advanced schemes that would work here, I think the advice from Simon above is on the mark.

  • Luis Cota added an answer:
    How do I write FORTRAN subroutine to simulate the kinetic of the oil shale retorting reaction?

    As oil shale retorting process is complicated thermochemical conversion process.For modeling of the oil shale retorting process. a FORTRAN subroutine is necessary in the model to simulated the kinetic of the retorting reaction.

    Luis Cota · Universidad Nacional Autónoma de México

    Since your question seems too open, let me answer in a general way:
    Yo need to have a mathematical model of the process, which you probably already have. If the model is too complicated, you might as well divide it in pieces or "routines" to perform individual tasks (divide-an-conquer).  

    This is good for Fortran and C and any language, as well as for retorting and econometrics, and whatnot.

  • Pascal GALON added an answer:
    Can anyone help me with a Fortran code to solve interface tracking problem by level set method?

    Those who are solving fluid problem by level set method

    Pascal GALON · Atomic Energy and Alternative Energies Commission

    The developers of LSMLIB are :

    Kevin T. Chu  and Masa Prodanovic

    You can find more informations on the Kevin T. Chu Webpage :

  • Frank Richter added an answer:
    Does anybody have some experience in the FRIC subroutine in Abaqus?


    I am using the "simple" model you can see on the images below. 

    I would like to use the FRIC subroutine to define a friction model. I would like to start with the Coulomb model and then define another one more complicated.

    But I don't know the Fortran syntax. So it would be very helpful to get some help about how to write a FRIC subroutine and then how to use it in Abaqus.

    Thanks a lot.

    Frank Richter ·

    I recommend you become a member of the ABAQUS mailing list

  • Giovanni De Gasperis added an answer:
    Why are physicists stuck with Fortran and not willing to move to Python with NumPy and Scipy?

    Nowadays all of the major Fortran related numerical calculus have exactly mapped equivalent libraries in more modern language framework like Numerical Python (NumPy) and Scientific Python (SciPy). 

    What keeps physicists stuck with Fortran?



    Scientific evidence?

    Giovanni De Gasperis · Università degli Studi dell'Aquila

    Btw, I like the approach of Software Carpentry web site on one of their Python online course for scientists:

    the time to arrive to a solution is given by:  Ts = Td + Te


        Ts : time to the solution

        Td: time to focus on the problem, think of an algorithm, write a program, debug it

        Te: time of execution

    Nowdays Td>>Te, that is why i am definitively stuck with Python/Numpy/Scipy.


  • Xuan Wang added an answer:
    What is a suitable open source code/software using C++ or fortrant programming for topology optimization?

    Is there any open source code using C++ or fortrant programming for structural topology optimization? Could you help?

    Xuan Wang · Dalian University of Technology

    Dear J. Liu  , thanks for your help.  The article and python code are easy to understand and very helpful for me .  Best wishes.

  • Marek Wojciech Gutowski added an answer:
    How do I obtain a plot of my Fortran results?
    I have a Fortran program which it executes correctly without any error in Microsoft developer studio but I do not obtain a graph. Does it require any other software or something so that it directly make a plot as the program executes?
    Marek Wojciech Gutowski · Institute of Physics of the Polish Academy of Sciences


    if you are a Fortran programmer then you know that no standard graphical output is available directly from Fortran programs.  Instead, the Fortran programs may prepare data files to be visualized by other tools, like gnuplot.  I like this package since it is easy to learn and to use, and able to produce many kinds of graphs, including 2D and 3D plots, polar coordinates, linear/logarithmic scales,  and so on.  Supported are very different graphical output formats as well.  To see the plot of f(x) prepare the data to be plotted in the form:

    x1   f(x1)

    x2  f(x2)


    Such data should be prepared by your Fortran program and located in some disk file, say in "data_file".

    Lines starting with "#" will be quietly ignored, empty lines are useful for separation of data groups.  It is enough to issue a command:

    gnuplot>  plot "data_file"

    to see the newly created graph.  Of course, many modifications of this command are possible, resulting in various shapes/sizes of points used, colors/width of lines, "x" and "y" ranges to be used, and so on.  Windows version of gnuplot is freely available, see Louis' Goffin message.

    Great thanks to Roberto Bellasio and to Louis Goffin for pointing us all to DISLIN package.  According to its documentation it may be used for making GUI for Fortran programs (it's primary usage is to produce plots during execution of a Fortran program (other languages are supported as well!), but in my opinion it is best to leave this task to other software, like gnuplot or Excell.

  • rosendo romero andrade added an answer:
    Is anyone familiar with GPS interpolation in fortran?


    I am currently trying to reconstruct the range from GPS satellites using the position given by ephemerides. Papers claim that I can have a centimeter or even less, precision on the position of the satellites from interpolation with either Lagrange or trigonometric interpolation. Unfortunately, the softwares I used for this failed to provide me with a satisfactory precision (I need at most 1-m precision, and they provide me with 100)m). As a result, I turn to the community to know if anyone has experience in GPS ephemerides interpolation, and can recommand me a fortran software that can attain satisfactory precision.

    Thank you in advance for any answer.

    rosendo romero andrade · Universidad Autónoma de Sinaloa

    i recommend you a MIT GAMIT/GLOBK software; and using: efemérides sp3 finals, earthquake file, etc. for another hand, do you use CGPS?; and why do you not use Ansi C?

  • Abdelkader Filali added an answer:
    How can I create a Graphical User Interface for FORTRAN code?

    Hi all,

    I have developed a code using Fortan included in the Microsoft Visual Studio 2010. I would like to create a graphical user interface GUI for this code but I don`t know how to do that in easier manner.

    Could anyone please share his experience on such coding development ? is the Microsoft Visual Studio 2010 can do that or should I use other programming languages such Visual Basic, or Delphi or ... to do that ? I`m really confusing on how to start doing this and I would appreciate any suggestion and help.



    Abdelkader Filali · Petroleum Institute (UAE)

    Thank you friends for sharing your experience. I really appreciate it.

  • Soutrik Banerjee (সৌত্রিক বন্দ্যোপাধ্যায়) added an answer:
    Which is the best alternative to Matlab?
    Matlab is an excellent software, but it is commercial and its price is very high. Other alternatives are available (Octave, Scilab, Freemat, ...) but each one has pros and cons. Is there a real competitor of Matlab?
  • Mohammad N. Elnesr added an answer:
    Can you help me construct an interface program?
    Can anyone help by suggesting the process or guidelines for constructing a program than can take required data from a database, prepare automatically the input of the second program, run that second program and extract results from second program? I know this will be very simple for the computer science people
    Mohammad N. Elnesr · King Saud University

    If the DB is in Access or Excel, so it is very easy to program what you want in VBA.

    If you want, I can help you doing so.

  • Valeria Demontis added an answer:
    Fortran compiler suitable for TRNSYS 17 - can anyone help?
    Looking for Fortran compiler suitable for TRNSYS 17. Any suggestions and recommendations are welcome.
    Hope that there is alternative for Intel Visual Fortran software, which could be used for Type creation and compilation.
    Valeria Demontis · Sardegna Ricerche

    Hi Karolis, I'm in the same situation you were 2 year ago...I'm trying to create trnsys components and looking for a suitable fortran compiler for windows7. Did you solved the problem? Any suggestion will be really useful! Thanks!! Valeria

  • Jhedy Amores added an answer:
    Why do I get an array error in TopoIndex (TRIGRS), and how do I solve it?

    I am currently trying to create a landslide susceptibility map of an area using TRIGRS (a Fortran program for slope stability analysis), and running the elevation grid file along with a flow direction grid in TopoIndex (a sister program) is the first step to it. However, when TopoIndex starts to read the flow direction grid file that I provided, it shows an error message before exiting the program without producing any result. The error message goes like this:

    ? FORTRAN Runtime Error:

    ? Subscript is out of range for dimension 1 for array

    ? adr with bounds 1:255

    File ./mpfldr.f; Line 20

    This error does not show in the log file either, and I was only able to see this error message by trying to catch a screenshot of the window right before it closes. Attached is the image of the window showing the error message.

    Is there anything wrong with the flow direction grid that I made, and if so, what corrections can I do to solve the error?

    Jhedy Amores · University of the Philippines Diliman

    I rechecked my data, and I did find some errors in the data input. Thank you for the advice! :)

  • Ehsan Taghizadeh added an answer:
    Why does a code have error in Fortran Power Station 4.0 but doesn't have error in some other compilers?


    I have a code that have error in "Fortran Power Station 4.0" but it works correctly in some other compilers! However I want somebody expert in fortran to help me.


    Ehsan Taghizadeh · University of Tehran

    Dear Dr. Simon

    I really appreciate for your time. You are right.

    1- So as Xiaolei said MSDEV power station 4.0 gives a runtime error when NaN is used as input for a function but pgi visual fortran run without giving error!?

    If yes I couldn't trust pgi results.(yes/no)

    2- What is your suggestion for gaussidel. I meant do you think initializing for phinewg is better or uninitializing for it?

  • Zied Kammoun added an answer:
    How can I install GFortran from synaptic package of linux?
    Can I download it freely?
    Zied Kammoun

    you can also install gfortran directly from synaptic:  it is a synaptic package

  • Sarkar Noor-E-Khuda added an answer:
    How do I link Forces 2.0 Fortran complier (or Visual Studio 2013) to ABAQUS?

    I need to link Forces 2.0 Fortran complier (or Visual Studio 2013) to ABAQUS. I have only access to download these two compliers for free. Can anyone tell me how to link them to ABAQUS,


    Sarkar Noor-E-Khuda · Queensland University of Technology

    Hi Ba,

    I always used command though, I hope you can link your subroutine in CAE as well. Follow the steps, in CAE Create Job->Continue->General->User Subroutine File.

    Give it a go.


    Sarkar Noor-E-Khuda 

  • Abdel Rahim Ruby Abdel hamid Hassanain added an answer:
    How can I run the program “ harmonic_synth_v02”?

    During compilation it generates a number of warning messages that causes compilation to fail at the position indicated below.

    error messages from compilation

    abd@abd-HP-Compaq-dc7900-Convertible-Minitower:~$ cd /home/abd/synth
    abd@abd-HP-Compaq-dc7900-Convertible-Minitower:~/synth$ gfortran harmonic_synth_v02.f

    call dhcsin(0,iuhi,kmin,kmax,0,cz,1.d0,1.d0,0,cnm,snm,egm_tf,
    Warning: Type mismatch in argument 'dc20' at (1); passed INTEGER(4) to REAL(8)

    call dhcsin(0,iuci,jmin,jmax,0,cz,1.d0,1.d0,0,cnm,snm,egm_tf,
    Warning: Type mismatch in argument 'dc20' at (1); passed INTEGER(4) to REAL(8)

    call dhcsin(0,iuhi,kmin,kmax,0,cz,1.d0,1.d0,0,cnm,snm,egm_tf,
    Warning: Type mismatch in argument 'dc20' at (1); passed INTEGER(4) to REAL(8)

    call dhcsin(0,iuci,jmin,jmax,0,cz,1.d0,1.d0,0,cnm,snm,egm_tf,
    Warning: Type mismatch in argument 'dc20' at (1); passed INTEGER(4) to REAL(8)

    Abdel Rahim Ruby Abdel hamid Hassanain · Benha University

    I sent a Message to Dr Josef Sebera about This problem
    And he sent me a modified version of harmonic_synth_v02 that export results to ASCII. The modification is between lines 677 and 992

  • Marek Wojciech Gutowski added an answer:
    Why LT (less than) operator in the Fortran code does not work properly?

     I have a problem in my CFD code, it doesn't work correctly.

    As can be seen in Fig, Yi (m) is equal to Yv (j+1), but when I apply:

    If (Yi (m).LT. Yv (j+1)) then


    end if

    The program gives wrong output !!!

    Marek Wojciech Gutowski · Institute of Physics of the Polish Academy of Sciences

    Computers are cruel and malicious.  They strictly distinguish .LT. from .LE. relations.

    Your result means nothing else but "it is not true that  (Yi (m).LT. Yv (j+1)) ".  On the other hand, when you see two numbers equal (as in your screen shot) it doesn't mean they indeed are equal, only their roundings to 6 decimal digits are equal.

  • Ramiro Checa-Garcia added an answer:
    Which part of my FORTRAN program is wrong?


    I have wrote a program in FORTRAN 95 but it has an error.I do not  Which part of my program is wrong.

    Could you help me? Thanks.

    Ramiro Checa-Garcia · Leibniz Institute for Tropospheric Research

    You did not ALLOCATE an array that is defined as ALLOCATABLE. You have to introduce a line


    before assign any value to the array. Now the program is running.

  • Shams Joha added an answer:
    How might one fix an error with Abaqus subroutine?

    Hi everybody,

    I am working on composite material damage and its criteria so that I have to compare some of them which are not included in Ababaqus. I have chosen a simple bar damage example from a book and have tried to run it, but have faced to an error, which has been attached. I also have attached the window which demonstrates that Abaqus and Fortran are linked.

    It would be appreciated if you let me know how to fix the error.



    Shams Joha · University of Virginia

    Hi Hadi,

               How did you solve your problem? I'm kinda having similar problem. When I'm checking if Abaqus is linked with fortan compiler in the  Abaqus command window, it shows "pass" ( please see the screenshot). However, when I'm trying to run a subroutine it is showing the following error : "Problem during linking". 

    Any help will be appreciated. 



  • Negar Kamali added an answer:
    System error code 1073740940 when using UEL ?

    I'm trying to run an analysis with a simple UEL subroutine that I wrote and after compiling, linking, analyzing the input file and the subroutine suddenly it crashes with this error:

    Abaqus Error: The executable standard.exe
    aborted with system error code 1073740940.
    Please check the .dat, .msg, and .sta files for error messages if the files

    has anyone encountered this before? I can not find a bug in my code (I write out all the matrices and they're all correct) I also checked everything else that comes to my mind.

    P.S: I can run other subroutines to the completed stage

    Negar Kamali · University of Illinois at Chicago

    Thank you very much for your help. Actually when I print out my matrices and vectors, all of them are correct. I also tested it with a program in Fortran. Works fine. It seems that Abaqus can not go to the next increment, I mean the subroutine cannot return the values.  

    So for my linear static analysis, I define AMATRX,RHS and SVARS. at the end of zeroth step, these values seem fine.  I don't request any output. Yes as you stated, this error is very vague. 

    could you explain a little more about your last paragraph? I appreciate it.

  • Reza Barati added an answer:
    How can I develop a fast MATLAB code?


    I know that FORTAN is fast, whereas one of disadvantages of MATLAB is the problem of speed. Matlab code is interpreted during runtime. Languages like C and Fortran are faster because they are first compiled into the computer's native language.
    How can I develop a fast MATLAB code?

    Thanks for taking a look.

    Reza Barati · Tarbiat Modares University

    Other useful links:

  • Nuno Sidónio Andrade Pereira added an answer:
    Am using fortran to open champ satellite data cdf files. can I get help?

    when I build the programme, I get the following errors;

    1. error 87-missing left bracket after OPEN

    2. error 431- unexpected ',' in assignment

    the programme is expected to open a cdf file with champ satellite data. I have attached the whole programme I have written for anybody who can help identify the problem

    Nuno Sidónio Andrade Pereira · Polytechnic Institute of Beja

    I'm sorry...I missed the code. Only now I took a look. That's not even non-standard fortran. It looks more like a basic dialect.

  • Mohsen Mohammadi added an answer:
    Hello , how can i link Fortran and Visual Studio with Abaqus?

    I want to write a subrotine for a non-uniform heat source .

    (Abaqus version 6.13)

    thank you

    Mohsen Mohammadi · City University of Hong Kong

    I did this today for somebody and it works very nice:

    1-      Install Visual Studio

    2-      Install Intel Fortran

    3-      We must edit the “abq6101.bat” in directory of C:\SIMULIA\Abaqus\Commands as follows:

    Right click on the “abq6101.bat”edit From this :

    @echo off

    "C:\SIMULIA\Abaqus\6.10-1\exec\abq6101.exe" %*

    Edit to :

    @call "C:\Program Files (x86)\Intel\Compiler\11.1\060\bin\intel64\ifortvars_intel64.bat"

    @echo off

    "C:\SIMULIA\Abaqus\6.10-1\exec\abq6101.exe" %*

  • Behzad Ghafarizadeh added an answer:
    How can I reformat a VUMAT Subroutine for using in Abaqus?


    I plan to use a VUMAT subroutine for modeling the material damage for a fiber reinforced composite material (the notepad file is attached). I copied it in the visual Microsoft studio but it showed several errors . I appreciate if you can help me to reformatting this subroutine (pleases see the attached FORTRAN file) . 

    Thank you for your time. 

    Behzad Ghafarizadeh · École de Technologie Supérieure

    Thank you Mariusz. I used Notepad++ . It is very helpful. 

  • Hamed Sharghi added an answer:
    How can I understand FDTD code for determining of band structure of photonic crystal?

    In fact I can understand the physics of the problem.I have problem with the loops and the converting to computer programming. I use c and fortran.

    Hamed Sharghi · Payame Noor University

    Dear Felipe

    Thank you very much.



About Fortran

Sharing FORTRAN knowledge

Topic followers (323) See all