Questions tagged [fortran2018]

7 questions
5
votes
1 answer

In what situation would you use "module procedure" in a submodule when creating separate module procedures?

I understand the general benefits of submodules in Fortran 2008+, but I'm having trouble understanding the benefit of one of the syntax options. If I want to create separate module procedures (where the body of the procedure is in a submodule) I…
joshindc
  • 77
  • 6
5
votes
0 answers

How to bignum in Fortran

For a language designed for scientific computing---even 50ish years ago, I am surprised to find that Fortran 2018 didn't have a native type for bignum or bigInt types for arbitrary precision, and suspect I am doing something wrong. What is the…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
3
votes
2 answers

How to Access a Remote Team in Fortran 2018

I've written a short Fortran program that uses teams, but it doesn't function as expected. I would like to know whether my programming syntax is correct, or if there's a bug in my compiler. I've been reading a book about Fortran 2018 and some of…
Steven
  • 65
  • 5
2
votes
1 answer

Optimal way to write a class in fortran 2018 (Code review)

I tried to write a code in modern fortran (2018?) and one of my goals is to be able to convert subroutines like this one (old fortran 77) to the most recent fortran (2018?) subroutine nobin(e,j,f)       common/binin/bini(40),nbn       …
mytmarco
  • 29
  • 2
2
votes
0 answers

Fortran 2018 mixed c++ null pointer seg faults

I have a simple program that combines C++ and Fortran using the new Fortran 2018 semantics. My example is based on the provided in comment #12 in https://software.intel.com/en-us/forums/intel-fortran-compiler/topic/697150. My example works fine…
0
votes
1 answer

Trouble with ANTLR4 Fortran 2018 Grammar - Unexpected Errors and Mismatched Input

I've been working on creating an ANTLR4 grammar for Fortran 2018 based on the BNF rules provided in the J3 Fortran 2018 document. I've directly converted each rule mentioned in the document into ANTLR4 rules. However, I'm encountering some…
0
votes
1 answer

Using MPI_PUT in fortran and different ranks have different displacements using c_loc

I have MPI ranks split up to calculate different parts an an array, then I want to put/send those slices onto a different rank that doesn't participate in the calculation. That rank is the master of a new communicator set up to do other things with…
byrdman1982
  • 109
  • 7