One main difference i found is that it is not producing as many output files as it is supposed to based on the input file. But i still have to evaluate if it is working as expected. fcray-pointer - was prompted for this flag by the compilerĪccording to some reading I used the flag -fopenmpĪs it is supposed to invoked openmp but strangely enough, i get an error at the end of compilation relating to the OMP commands in some of the objects.Ĭompiling without this command works alright. Wno-tabs to avoid the non conforming tab warning It worked for me.īelow I will mention some of the flags I used to make the code work In my case -Wall did not prove to be of much help as it calls all the flags in the -W so some flags got overridden by thanks for the suggestion. How much of it is an issue would depend on the code thanks for the suggestion. But i noticed that with the some features changing in Intel and GNU compiler, it can have some issues in the code. Thank you for all the responses and Even i thought that the code should be more or less universal as long as the script is same. But at the end of the process, you would get a much better code.īTW: remember to check the -Wall option of gfortran. And the process is a good opportunity to improve the robustness and quality of the code. Porting a code from ifort to gfortran would expose many hidden issues and mistakes in the code. You may let your dog sit on the keyboard for a while and ifort can still compile the outcome and produce something. I was hoping if anyone could share views on this matter and provide guidance on how to tackle it.Īny help is much appreciated. The errors described above so far could be remedied but considering the expanse of the code it is impractical. I am not the most experienced person in Fortran, but I thought that the change in Compiler should not be a reason for new found syntax errors. The error I get is 'Unclassified Statement Error', I was able to fix it in some subroutines and functions by locally declaring the variables again. However, now I during compilation i get error is in module B.F90. As a result I have to break it into multiple lines using the '&' symbolĢ) A module D.f90 contains all the Global variables declared. So now when I compile the code I am having some strange issues.ġ) The GNU Fortran is not able to read lines that are too long and I get errors during compilation. Nevertheless,I will try to best describe the issues** **I am sorry I am unable to put in anything from the code structure or terminal output due to IP restrictions of my university. I am using it on Ubuntu with GNU Fortran and Openmpi I made changes in the Makefile that initially had flags suitable for the ifort. Now since i do not have access to the Intel compiler I need to make it work using the GNU Fortran Compiler. The code contain 15+ Modules and was initially designed to work with the Intel Fortran compiler. I am working on a custom CFD Solver written in FORTRAN 90 and MPI. CFD Code Conversion from Intel Fortran to GNU Fortran - CFD Online Discussion Forums
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |