- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I would like to compile a fortran code with ifort. The source code files *.f90 are in different sub-folders.
how can I do?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Put the path to the files in your ifort command. This is no different than using cp or any other command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear All, Dear Steve,
thanks. The problem is that I have to many files to do that. I have also tried with:
ifort -r -r8 *.f90 -lmkl_blas95_lp64 -lmkl_lapack95_lp64 -mkl=sequential
but fortran creates the modules outside the folder so I was not able to use then and fortran itself gived me an error in the second compilation for missing module.
Do I have to create a makefile?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would think a makefile wouid be handy for a large project. But you can use "-module path" to specify where modules should be created (and this location is also added to the include path.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Steve, Dear all,
thanks so much
Have a nice day

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page