Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fortran fix/free form flags #73

Merged
merged 2 commits into from
Jul 29, 2021
Merged

Add Fortran fix/free form flags #73

merged 2 commits into from
Jul 29, 2021

Conversation

wkliao
Copy link
Member

@wkliao wkliao commented Jul 29, 2021

IBM XLF compiler on Summit at OLCF requires -qfixed compile flag when
compiling Fortran programs written in fixed form. This PR adds the fixed
form flag detected at configure time to AM_FFLAGS when compiling fixed
form programs. Similarly, it added the free form flag to AM_FCFLAGS when
compiling free form programs.

On Summit @olcf, the IBM XLF compiler would not compile fixed-form
Fortran program without command-line option '-qfixed'. Fortunately, all
PnetCDF Fortran 77 example and test programs are written in fixed form.
All F90 programs are written in free form. The only exception are two
programs freeform.f and fixedform.f90, which are used to test free form
in a F77 program and fixed form in f90 program.
@wkliao wkliao merged commit 0a612af into master Jul 29, 2021
wkliao added a commit that referenced this pull request Jul 29, 2021
@wkliao wkliao deleted the fix_form branch September 2, 2021 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant