Click here to Skip to main content
15,881,812 members
Everything / Programming Languages / FORTAN

FORTAN

FORTAN

Great Reads

by Andy Allinger
Add features to k-means for missing data, mixed data, and choosing the number of clusters
by Christ Akkermans
An introduction to the strange world of mixed language programming with FORTRAN and C# .NET code
by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in Fortran
by Christ Akkermans
Part II of the FORTRAN Interoperability with .NET series where we introduce the ISO C Binding which greatly simplifies interoperability.

Latest Articles

by Andy Allinger
Add features to k-means for missing data, mixed data, and choosing the number of clusters
by Vasilis Raptis
For those involved in molecular simulation research projects: calculation of molecular radial distribution functions based on DL_POLY Molecular Dynamics trajectories.
by Shmuel Safonov
Creation a numeric library that calculates with quadruple floating-point precision and used from MSVC C/C++ code
by Andy Allinger
Introduces data clustering and the k-means++ algorithm

All Articles

Sort by Score

FORTAN 

7 Jun 2023 by Andy Allinger
Add features to k-means for missing data, mixed data, and choosing the number of clusters
16 May 2016 by Christ Akkermans
An introduction to the strange world of mixed language programming with FORTRAN and C# .NET code
10 Feb 2016 by John Jiyang Hou
An algorithm to determine if a point is inside a 3D convex polygon for a given polygon vertices in Fortran
30 Apr 2016 by Christ Akkermans
Part II of the FORTRAN Interoperability with .NET series where we introduce the ISO C Binding which greatly simplifies interoperability.
18 Sep 2017 by Shmuel Safonov
Creation a numeric library that calculates with quadruple floating-point precision and used from MSVC C/C++ code
23 Mar 2018 by Jochen Arndt
Your asterisk are on column 6 which is the line continuation (continuation mark) position. See also Continuation Line - Using and Porting GNU Fortran[^]. They tell the compiler that the statement of the previous line is continued. The character itself is ignored.
2 Jul 2018 by OriginalGriff
Don't translate them: they are very different languages and you will not end up with good quality code in C#. What you are trying to do is translate Shakespeare's plays to Korean using Google translate to look up each word: To be or not to be, that is the question 에 있다 또는 아니 에 있다 그 ~이다. 그만큼 문제...
26 Feb 2015 by Stefan_Lang
Since the code looks incomplete, even when considering I haven't worked with Fortran the last 25 years, I've checked this site: http://en.wikibooks.org/wiki/Fortran/Fortran_examples[^]I've noticed two things:1. Apparently there are considerable differences between the different versions of...
23 Mar 2018 by CHill60
** is the exponentiation operator - i.e. A ** b raises A to the power of b Fortran Operators[^] If that is genuine whitespace between the * * then remove the whitespace - the operator is **
13 Nov 2019 by Vasilis Raptis
For those involved in molecular simulation research projects: calculation of molecular radial distribution functions based on DL_POLY Molecular Dynamics trajectories.
22 Jul 2021 by Richard MacCutchan
Look at the error message: 1>LINK : warning LNK4012: invalid value 'D_LIB.LIB/DEFAULTLIB:G_LIB.LIB/DEFAULTLIB:K_LIB.LIB/DEFAULTLIB:P_LIB.LIB/DEFAULTLIB:X_LIB.LIB', must be 'ARM, EBC, IA64, MIPS, MIPS16, MIPSFPU, MIPSFPU16, SH4, THUMB, X64, or...
3 Jan 2022 by CHill60
As @Patrice-T has suggested - read the documentation READ (FORTRAN 77 Language Reference)[^] Or one of the on-line tutorials - Fortran 77 Tutorial[^] And here is an example of using a loop to read the file Read Entire line regardless of...
3 Jan 2022 by Richard MacCutchan
You were given an answer four days ago in your original question at How do I read variables from a txt file in Fortran[^]. Please do not repost.
2 Mar 2016 by Kyudos
I have a cross-language (C++ FORTRAN) cyclic dependency that would be too much of a pain to eradicate, so I live with it. It only requires an occasional /FORCE with no linker dependencies on my C++ library. I have been doing this manually as required, but the new version of our product has...
2 Mar 2016 by KarstenK
The best way of dealing with that will Building on the Command Line. It is a big chunk to learn, but if you have really 8 configurations it will a "mighty tool" and pay of when you get your batches running.Good luck. ;-)
27 Apr 2016 by Member 12481216
G(1)=1.0;NH=NS/2;for i=2:NS G(i)=G(i-1)*i;endHS(1)=2.0/G(NH-1); for i = 2:NH FI=i; if i== NH HS(i)=FI^(NH)*G(2*i)/(G(i)*G(i-1)); else HS(i)=FI^(NH)*G(2*i)/(G(NH-i)*G(i)*G(i-1)); end end ...
23 Mar 2018 by Nikolay Yasinskiy
In this part of code my compiler gives Error: Invalid character in name. I cannot understand the sense of this operator * *, is it cycle of multiplication? do i_lamda = 1, n_lamda_num ! Find and remember characteristic determinant members ! В этой записи...
9 Apr 2018 by Rick York
This is your homework so YOU need to do the work. Don't expect anyone to provide anything for you. We'll be happy to answer questions but YOU need to do the work.
3 Feb 2021 by yara hariri
hi all! i am new to fortran and I'm using a module that contains a subroutine, that I need to call in another main file, however I am getting some errors and the subroutine is not printing what I want her to print. Here is my module: module...
22 Jul 2021 by velans
I'm facing below error please help me. 1>------ Build started: Project: PWR101U3, Configuration: Release Win32 ------ 1>Linking... 1>LINK : warning LNK4012: invalid value...
22 Jul 2021 by KarstenK
As Richard wrote you probably missed some libs. The best hint is to think about the stripped missing symbols like LFLOW. I guess some special library in your project is not included in the linker or properly configured or installed.
18 Nov 2021 by Carlo Timossi 2021
I've tried to build a project inside VS2019 IDE, where I call from a routine C++ a routine Intel Fortran passing some structures and inside the routine Intel Fortran I call a routine C++, but I've some problems in linking because the link does...
18 Nov 2021 by Richard MacCutchan
See Creating and Using a Dynamic Link Library (C+) | Microsoft Docs[^] for the correct way to build a DLL.
14 Jun 2017 by Andy Allinger
Introduces data clustering and the k-means++ algorithm
13 May 2016 by Christ Akkermans
This article in the FORTRAN Interoperability with .NET series explains how to exchange complex data between C# and FORTRAN.
26 Dec 2001 by Narayana Rao Surapaneni
This article gives you an introduction about how Fortran can be used to write wide variety of applications under .NET framework
12 Nov 2016 by Zebedee Mason
Perform dependency analysis by using Doxygen to parse source code and produce a report
5 Nov 2015 by Stylianos Polychroniadis
I am using P/Invoke calls to Fortran dynamic link libraries (DLLs, compiled with Intel Fortran compiler). As these Fortran libraries are currently being under development, I quite often get Fortran run-time errors which display a message box containing the error information. The problem is...
4 Nov 2015 by DanielBrownAU
One way which comes to mind (and it may not be best practice tho)... may be to wrap the P/Invoke calls in a try/catch/finally block to handle with any exceptions generated by the calls.Furthermore, any access/calls to the libraries could be placed into its own central class and error...
27 Feb 2015 by azam1354
hello friends;I need help for creating a simple cubic in FORTRAN.I have writing this program,but it doesn't work correctly.please help me...natom=27x(natom),y(natom),z(natom)x(1)=0y(1)=0z(1)=0n=1do i=1,3 do j=1,3 do k=1,3 rx(n)=x(1)+(i-1)a ...
3 Jul 2018 by User 7923865
I have been tasked with converting several Fortran files over to C#. I really do not have a choice and in this situation cannot use a Dot net driver to read Fortran. I am an amateur when it comes to C# and used Fortran in 1983 as my one and only time. I have a couple of clauses which I can't...
27 Apr 2016 by Member 12481216
I am working on a project to convert a large Fortran77 code into MATLAB. Since Do loops in F77 are equivalent to For loops in MATLAB, a subroutine of F77 when translated into MATLAB is giving error. The F77 subroutine is given in link[^]and my tried MATLAB translated version is given in...
3 Jul 2018 by User 7923865
it is apparent that there was no point in asking this question here.
30 Dec 2021 by Member 14991075
Hello, I have a problem with a code. I would like to read some files and set them to a variable in Fortran programming language. Ihave a file called "number.txt" which has 2 lines and one column. I would like to set the numbers of first line to a...
4 Jan 2022 by Member 14991075
I would like to read variables from a file in Fortran. For example I have one .txt file with multiple columns. I would like to set i.e. x (for the first column) y (for the secοnd column) z (for the third column) etc. The porpuse of this set is...