-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNewTrial27Nov2024
155 lines (84 loc) · 5.91 KB
/
NewTrial27Nov2024
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# Starting with cloning
`cd /`
`cd /mnt/c/Users/uqrprast/Documents`
`/mnt/c/Users/uqrprast/Documents# git clone --recurse-submodules https://github.com/schism-dev/schism.git`
`cd schism`
# Cloning into schism
`/mnt/c/Users/uqrprast/Documents/schism# sudo apt update`
`/mnt/c/Users/uqrprast/Documents/schism# sudo apt install openmpi-bin openmpi-common libopenmpi-dev`
`/mnt/c/Users/uqrprast/Documents/schism# python3 --version`
`/mnt/c/Users/uqrprast/Documents/schism# sudo apt install perl`
`/mnt/c/Users/uqrprast/Documents/schism/build#`
`/mnt/c/Users/uqrprast/Documents/schism/build# rm -rf`
`/mnt/c/Users/uqrprast/Documents/schism/build# cmake -C ../cmake/SCHISM.local.build -C ../cmake/SCHISM.local.myown ../src/`
# Error
CMake Error: Not a file: /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.myown
CMake Error: Error processing file: /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.myown
# Resolving
`/mnt/c/Users/uqrprast/Documents/schism/build# ls /mnt/c/Users/uqrprast/Documents/schism/build`
`/mnt/c/Users/uqrprast/Documents/schism/build# cmake ../cmake/SCHISM.local.myown`
# Error
CMake Error: The source directory "/mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.myown" does not exist.
`/mnt/c/Users/uqrprast/Documents/schism/build# ls /mnt/c/Users/uqrprast/Documents/schism/cmake`
`/mnt/c/Users/uqrprast/Documents/schism/build# find /mnt/c/Users/uqrprast/Documents/schism -name "SCHISM.local*"`
`/mnt/c/Users/uqrprast/Documents/schism/build# nano /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.myown`
`/mnt/c/Users/uqrprast/Documents/schism/build# cd /mnt/c/Users/uqrprast/Documents/schism/build`
`cmake ../cmake/SCHISM.local.myown`
'/mnt/c/Users/uqrprast/Documents/schism/build# make -j8 pschism'
# Resolving
`/mnt/c/Users/uqrprast/Documents/schism/build# sudo apt update`
`/mnt/c/Users/uqrprast/Documents/schism/build# cd ../build`
`/mnt/c/Users/uqrprast/Documents/schism/build# cmake -C ../cmake/SCHISM.local.build -C ../cmake/SCHISM.local.myown ../src/ -DCMAKE_VERBOSE_MAKEFILE=ON`
#gfortran
`/mnt/c/Users/uqrprast/Documents/schism/build# sudo apt install gfortran`
`/mnt/c/Users/uqrprast/Documents/schism/build# cd /path/to/your/build/directory`
cd: /path/to/your/build/directory: No such file or directory
Make directory folder
`/mnt/c/schism/build# gfortran --version`
`/mnt/c/schism/build# cmake -DCMAKE_Fortran_COMPILER=gfortran -C ../cmake/SCHISM.local.build -C ../cmake/SCHISM.local.myown ../src/`
`/mnt/c/schism/build# which gfortran`
`/mnt/c/schism/build# export FC=/usr/bin/gfortran`
`/mnt/c/schism/build# cmake -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran ../cmake/SCHISM.local.myown`
# Trying to resolve again
`/mnt/c/Users/uqrprast/Documents/schism/build# sudo apt update`
`/mnt/c/Users/uqrprast/Documents/schism/build# sudo apt install libnetcdf-dev libnetcdff-dev`
`/mnt/c/Users/uqrprast/Documents/schism/build# nc-config --version`
`/mnt/c/Users/uqrprast/Documents/schism/build# nc-config --cflags`
`/mnt/c/Users/uqrprast/Documents/schism/build# nc-config --libs`
`/mnt/c/Users/uqrprast/Documents/schism/build# cmake -DNetCDF_C_LIBRARY=/usr/lib/x86_64-linux-gnu/libnetcdf.so \ -DNetCDF_Fortran_LIBRARY=/usr/lib/x86_64-linux-gnu/libnetcdff.so \ -DNetCDF_INCLUDE_DIR=/usr/include \ -C ../cmake/SCHISM.local.build -C ../cmake/SCHISM.local.myown ../src/`
`/mnt/c/Users/uqrprast/Documents/schism/build# export CXX=/usr/bin/g++`
`/mnt/c/Users/uqrprast/Documents/schism/build# rm -rf CMakeCache.txt CMakeFiles/`
`/mnt/c/Users/uqrprast/Documents/schism/build# mkdir -p /path/to/your/build/directory`
`/mnt/c/Users/uqrprast/Documents/schism/build# cd /path/to/your/build/directory`
`/path/to/your/build/directory# rm -rf CMakeCache.txt CMakeFiles/`
`/path/to/your/build/directory# cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_Fortran_COMPILER=gfortran -C ../cmake/SCHISM.local.build -C ../cmake/SCHISM.local.myown ../src/`
`/path/to/your/build/directory# ls /mnt/c/Users/uqrprast/Documents/schism/cmake`
`/path/to/your/build/directory# ls /mnt/c/Users/uqrprast/Documents/schism/src`
`/path/to/your/build/directory# cd /mnt/c/Users/uqrprast/Documents/schism/build`
`/mnt/c/Users/uqrprast/Documents/schism/build# cmake -C ../cmake/SCHISM.local.myown ..`
`/mnt/c/Users/uqrprast/Documents/schism/build# ls /mnt/c/Users/uqrprast/Documents/schism`
`/path/to/your/build/directory# ls /mnt/c/Users/uqrprast/Documents/schism/src
ls /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.build
ls /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.myown`
`/path/to/your/build/directory# cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DCMAKE_Fortran_COMPILER=/usr/bin/gfortran \
-C /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.build \
-C /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.myown \
/mnt/c/Users/uqrprast/Documents/schism/src`
`/path/to/your/build/directory# find /mnt/c/Users/uqrprast/Documents/schism -name "SCHISM.local*"`
`/path/to/your/build/directory# cd /mnt/c/Users/uqrprast/Documents/schism/build`
`/mnt/c/Users/uqrprast/Documents/schism/build# rm -rf *`
`/mnt/c/Users/uqrprast/Documents/schism/build# cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DCMAKE_Fortran_COMPILER=/usr/bin/gfortran \
-C /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.build \
-C /mnt/c/Users/uqrprast/Documents/schism/cmake/SCHISM.local.myown \
/mnt/c/Users/uqrprast/Documents/schism/src`
`/mnt/c/Users/uqrprast/Documents/schism/build# make -j8 pschism
/mnt/c/Users/uqrprast/Documents/schism/src/Core/gen_version.py
/mnt/c/Users/uqrprast/Documents/schism/src/Core
/mnt/c/Users/uqrprast/Documents/schism/src/Core/_version`
# Extracting modules
`/mnt/c/Users/uqrprast/Documents/schism/build#`
`/mnt/c/Users/uqrprast/Documents/schism/build# sudo apt update`
`/mnt/c/Users/uqrprast/Documents/schism/build# sudo apt install subversion`
`/mnt/c/Users/uqrprast/Documents/schism/build# svn co https://columbia.vims.edu/schism/schism_verification_tests`