-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include statements in preprocessor format now.
This is interesting. I would like to use pre-processor for easier debugging, I mean warning. I would like to use macros such as __FILE__ and __LINE__ in calls to Messages_Mod's procedures. but the preprocessing options are not passed to included files. As GNU Fortran compiler states: "If a preprocessed file includes another file with the Fortran INCLUDE statement, the included file is not preprocessed. To preprocess included files, use the equivalent preprocessor statement #include." (https://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-Options.html) But then there is another issue. Fortran's include statements in T-Flows were all nicelly indented, but preprocessors #include" must start in the first column. I did find a workaround though. It seems it is only important that character "#" is in the first column, "include" can be indented. Hence, I changed this: -> contains -> -> include 'Some_Cool_Member_Function.f90' to: <- contains <- <-# include "Some_Cool_Member_Function.f90" All in all, although a lot of files have changed, the changes are in essence small and shouldn't affect functionality in any way. On branch changed_include_statements modified: Sources/Convert/Find_Faces.f90 modified: Sources/Convert/Find_Parents.f90 modified: Sources/Convert/Grid_Topology.f90 modified: Sources/Convert/Insert_Buildings.f90 modified: Sources/Generate/Domain_Mod.f90 modified: Sources/Generate/Refines_Mod.f90 modified: Sources/Generate/Smooths_Mod.f90 modified: Sources/Process/Backup_Mod_Par.f90 modified: Sources/Process/Backup_Mod_Seq.f90 modified: Sources/Process/Bulk_Mod.f90 modified: Sources/Process/Eddies_Mod.f90 modified: Sources/Process/Elem_Mod.f90 modified: Sources/Process/Face_Mod.f90 modified: Sources/Process/Field_Mod.f90 modified: Sources/Process/Front_Mod.f90 modified: Sources/Process/Info_Mod.f90 modified: Sources/Process/Interface_Mod.f90 modified: Sources/Process/Matrix_Mod.f90 modified: Sources/Process/Monitor_Mod.f90 modified: Sources/Process/Native_Mod.f90 modified: Sources/Process/Numerics_Mod.f90 modified: Sources/Process/Particle_Mod.f90 modified: Sources/Process/Petsc_Mod_Fake.f90 modified: Sources/Process/Petsc_Mod_True.f90 modified: Sources/Process/Point_Mod.f90 modified: Sources/Process/Read_Controls_Mod.f90 modified: Sources/Process/Results_Mod.f90 modified: Sources/Process/Solver_Mod.f90 modified: Sources/Process/Surf_Mod.f90 modified: Sources/Process/Swarm_Mod.f90 modified: Sources/Process/Turb_Mod.f90 modified: Sources/Process/User_Mod.f90 modified: Sources/Process/Var_Mod.f90 modified: Sources/Process/Vector_Mod.f90 modified: Sources/Process/Vert_Mod.f90 modified: Sources/Process/Vof_Mod.f90 modified: Sources/Shared/Comm_Mod_Par.f90 modified: Sources/Shared/Comm_Mod_Seq.f90 modified: Sources/Shared/Control_Mod.f90 modified: Sources/Shared/File_Mod.f90 modified: Sources/Shared/Gen_Mod.f90 modified: Sources/Shared/Grid_Mod.f90 modified: Sources/Shared/Math_Mod.f90 modified: Sources/Shared/Message_Mod.f90 modified: Sources/Shared/Profiler_Mod.f90 modified: Sources/Shared/Sort_Mod.f90 modified: Sources/Shared/String_Mod.f90 modified: Sources/Shared/Swap_Mod.f90 modified: Sources/Shared/Tokenizer_Mod.f90 modified: Sources/Shared/Vtk_Mod.f90 modified: Sources/Shared/Work_Mod.f90
- Loading branch information
Showing
51 changed files
with
832 additions
and
830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,6 @@ module Face_Mod | |
|
||
contains | ||
|
||
include 'Face_Mod/Allocate.f90' | ||
# include "Face_Mod/Allocate.f90" | ||
|
||
end module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.