-
Notifications
You must be signed in to change notification settings - Fork 0
Code review hack! #1
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
base: source_master
Are you sure you want to change the base?
Changes from all commits
5a44ca9
cbd2297
8bdae78
e7c322a
141ce3d
6aa6d46
c06b018
2cf366c
c15a26e
76244fe
c3edcb0
aba88e0
f24226b
1d753e3
1cce7cd
e41274a
7ec142a
45d2719
97cc57f
949699c
73cce38
a7cf364
61c342b
0a3f7dc
53a6cb9
3ac324b
1d294c0
9f8151d
9f1a967
1766e20
7486675
7bf328a
f295c4f
1456ebd
4e2fe73
cc4b67e
3ac07e3
8971abd
3618aa9
5cc34f0
225a3d3
0a9e11f
2f20d81
a93933d
d4b474b
02b44b5
0c90bee
7da4107
fd23bf8
50778c2
128230f
6d297f6
6c38870
9ed5a43
0c4a086
d7d93d3
f84bdb4
836add3
6324a94
bf1e73a
07b8550
06673ec
3c09631
95cd3ad
048c0a8
d78a92e
48e5639
2485b2a
49f6a51
155f7f2
2861570
3306cd0
61cffa9
41cad72
2fbb952
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,7 @@ | |
| *sublime* | ||
| *.mod | ||
| *.o | ||
| build/ | ||
| original_projects/ | ||
| els.x | ||
| dat/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # References: | ||
| # https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/languages/fortran/ForFortranExample | ||
| # https://fortranwiki.org/fortran/show/Build+tools | ||
|
|
||
| cmake_minimum_required (VERSION 3.12) | ||
| project (els) | ||
| enable_language (Fortran) | ||
|
|
||
| if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU") | ||
| set (dialect "-ffree-form -std=f2008 -fimplicit-none -fopenmp -O3 -ffast-math") | ||
| set (extras "-fcheck=all -Wall -ggdb -O0") | ||
| endif () | ||
| if (CMAKE_Fortran_COMPILER_ID MATCHES "Intel") | ||
| set (dialect "-stand f08 -free -implicitnone -qopenmp -O3") | ||
| set (extras "-check bounds -O0") | ||
| endif () | ||
|
|
||
| set (CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} ${extras}") | ||
| set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${dialect}") | ||
|
|
||
| file (GLOB_RECURSE sources src/*.f90 src/*.F90) | ||
| add_executable(els.x ${sources}) | ||
| target_link_libraries (els.x /opt/OpenBLAS/lib/libopenblas.a -lpthread) | ||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't hurt to make this more configurable - having to have a dirty CMakeLists.txt hanging around because you don't have access to /opt isn't great practice.