質問編集履歴
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -148,7 +148,7 @@
|
|
148
148
|
|
149
149
|
「synaptic package manager」をインストールして
|
150
150
|
|
151
|
-
GUI上ライブラリ等をインストールしました。
|
151
|
+
GUI上でライブラリ等をインストールしました。
|
152
152
|
|
153
153
|
|
154
154
|
|
1
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
|
9
9
|
Youtube等の動画を参考にしてCode_saturneのインストールやコンパイルはうまくいったと思います。
|
10
10
|
|
11
|
+
コンパイルに関しての情報は一番下の方に書いております。
|
12
|
+
|
13
|
+
|
14
|
+
|
11
15
|
コンピュータ環境はVirtualBox上でUbunts18.04を使用しています。
|
12
16
|
|
13
17
|
|
@@ -104,7 +108,7 @@
|
|
104
108
|
|
105
109
|
|
106
110
|
|
107
|
-
恥ずかしながら、正直
|
111
|
+
恥ずかしながら、正直なところ下記
|
108
112
|
|
109
113
|
```ここに言語を入力
|
110
114
|
|
@@ -157,3 +161,261 @@
|
|
157
161
|
|
158
162
|
|
159
163
|
ご教示のほどよろしくお願いします。
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
Code_Saturneには①自分ですべてゼロからコンパイルする方法と
|
170
|
+
|
171
|
+
②pythonのコードを使って簡単に半自動でコンパイルする方法があります。
|
172
|
+
|
173
|
+
私は②の半自動のコンパイルの方法でやりました。
|
174
|
+
|
175
|
+
[インストールガイド](https://www.code-saturne.org/cms/documentation/v60)はここにあります。
|
176
|
+
|
177
|
+
少しやり方を説明しますと、下記のように「setup」ファイルを用意し
|
178
|
+
|
179
|
+
```ここに言語を入力
|
180
|
+
|
181
|
+
#========================================================
|
182
|
+
|
183
|
+
# Setup file for Code_Saturne installation
|
184
|
+
|
185
|
+
#========================================================
|
186
|
+
|
187
|
+
#
|
188
|
+
|
189
|
+
#--------------------------------------------------------
|
190
|
+
|
191
|
+
# Download packages ?
|
192
|
+
|
193
|
+
#--------------------------------------------------------
|
194
|
+
|
195
|
+
download no
|
196
|
+
|
197
|
+
#
|
198
|
+
|
199
|
+
#--------------------------------------------------------
|
200
|
+
|
201
|
+
# Install Code_Saturne with debugging symbols
|
202
|
+
|
203
|
+
#--------------------------------------------------------
|
204
|
+
|
205
|
+
debug no
|
206
|
+
|
207
|
+
#
|
208
|
+
|
209
|
+
#--------------------------------------------------------
|
210
|
+
|
211
|
+
# Installation directory
|
212
|
+
|
213
|
+
#--------------------------------------------------------
|
214
|
+
|
215
|
+
prefix /home/tsubasa/Code_Saturne/6.0.5
|
216
|
+
|
217
|
+
#
|
218
|
+
|
219
|
+
#--------------------------------------------------------
|
220
|
+
|
221
|
+
# Optional architecture Name (installation subdirectory)
|
222
|
+
|
223
|
+
#--------------------------------------------------------
|
224
|
+
|
225
|
+
use_arch no
|
226
|
+
|
227
|
+
arch Linux_x86_64
|
228
|
+
|
229
|
+
#
|
230
|
+
|
231
|
+
#--------------------------------------------------------
|
232
|
+
|
233
|
+
# C compiler and optional MPI wrapper
|
234
|
+
|
235
|
+
#--------------------------------------------------------
|
236
|
+
|
237
|
+
compC /usr/bin/cc
|
238
|
+
|
239
|
+
mpiCompC /usr/bin/mpicc
|
240
|
+
|
241
|
+
#
|
242
|
+
|
243
|
+
#--------------------------------------------------------
|
244
|
+
|
245
|
+
# Fortran compiler
|
246
|
+
|
247
|
+
#--------------------------------------------------------
|
248
|
+
|
249
|
+
compF /usr/bin/f95
|
250
|
+
|
251
|
+
#
|
252
|
+
|
253
|
+
#--------------------------------------------------------
|
254
|
+
|
255
|
+
# C++ compiler and MPI wrapper for optional packages
|
256
|
+
|
257
|
+
#
|
258
|
+
|
259
|
+
# Required only for static builds using the MED library
|
260
|
+
|
261
|
+
# or for build of optional modules such as MEDCoupling
|
262
|
+
|
263
|
+
# support.
|
264
|
+
|
265
|
+
#--------------------------------------------------------
|
266
|
+
|
267
|
+
compCxx /usr/bin/c++
|
268
|
+
|
269
|
+
mpiCompCxx /usr/bin/mpicxx
|
270
|
+
|
271
|
+
#
|
272
|
+
|
273
|
+
#--------------------------------------------------------
|
274
|
+
|
275
|
+
# Python interpreter.
|
276
|
+
|
277
|
+
#--------------------------------------------------------
|
278
|
+
|
279
|
+
python /usr/bin/python3
|
280
|
+
|
281
|
+
#
|
282
|
+
|
283
|
+
#--------------------------------------------------------
|
284
|
+
|
285
|
+
# Disable the Graphical user Interface ?
|
286
|
+
|
287
|
+
#--------------------------------------------------------
|
288
|
+
|
289
|
+
disable_gui no
|
290
|
+
|
291
|
+
#
|
292
|
+
|
293
|
+
#--------------------------------------------------------
|
294
|
+
|
295
|
+
# Disable frontend (also disables GUI) ?
|
296
|
+
|
297
|
+
# May be useful for debug builds and HPC cluster builds
|
298
|
+
|
299
|
+
# installed side-by side with a full build.
|
300
|
+
|
301
|
+
#--------------------------------------------------------
|
302
|
+
|
303
|
+
disable_frontend no
|
304
|
+
|
305
|
+
#
|
306
|
+
|
307
|
+
#--------------------------------------------------------
|
308
|
+
|
309
|
+
# Optional SALOME platform install path.
|
310
|
+
|
311
|
+
#
|
312
|
+
|
313
|
+
# This is the path for the main SALOME directory,
|
314
|
+
|
315
|
+
# not the application directory.
|
316
|
+
|
317
|
+
#
|
318
|
+
|
319
|
+
# If Code_Saturne is built with SALOME support,
|
320
|
+
|
321
|
+
# running "code_saturne salome" will launch the
|
322
|
+
|
323
|
+
# associated application, containing the CFDSTUDY module.
|
324
|
+
|
325
|
+
#--------------------------------------------------------
|
326
|
+
|
327
|
+
salome no
|
328
|
+
|
329
|
+
#
|
330
|
+
|
331
|
+
#--------------------------------------------------------
|
332
|
+
|
333
|
+
# Optional packages:
|
334
|
+
|
335
|
+
# ------------------
|
336
|
+
|
337
|
+
#
|
338
|
+
|
339
|
+
# MED / HDF5 For MED file format support
|
340
|
+
|
341
|
+
# (used by SALOME and by Gmsh)
|
342
|
+
|
343
|
+
#
|
344
|
+
|
345
|
+
# CGNS / HDF5 For CGNS file support
|
346
|
+
|
347
|
+
# (used by many meshing tools)
|
348
|
+
|
349
|
+
#
|
350
|
+
|
351
|
+
# Scotch (includes PT-Scotch) and/or ParMetis
|
352
|
+
|
353
|
+
# for parallel partitioning
|
354
|
+
|
355
|
+
#
|
356
|
+
|
357
|
+
# For Linux workstations, HDF5, CGNS, and even MED
|
358
|
+
|
359
|
+
# packages may be available through the package manager.
|
360
|
+
|
361
|
+
# HDF5 is also often available on large systems.
|
362
|
+
|
363
|
+
# When building with SALOME, the platform distribution's
|
364
|
+
|
365
|
+
# packages may be used, by setting in the matching entry
|
366
|
+
|
367
|
+
# 'yes' under the "Use" column and simply 'salome' under
|
368
|
+
|
369
|
+
# the path column.
|
370
|
+
|
371
|
+
#
|
372
|
+
|
373
|
+
# Scotch and Pt-Scotch are available in some Linux
|
374
|
+
|
375
|
+
# distributions, but may be built with options
|
376
|
+
|
377
|
+
# incompatible with non-threaded Code_Saturne runs.
|
378
|
+
|
379
|
+
#
|
380
|
+
|
381
|
+
# To install CGNS or ParMetis, the CMake
|
382
|
+
|
383
|
+
# configuration/installation tool is required
|
384
|
+
|
385
|
+
# (it is available in most Linux distributions).
|
386
|
+
|
387
|
+
#--------------------------------------------------------
|
388
|
+
|
389
|
+
#
|
390
|
+
|
391
|
+
# Name Use Install Path
|
392
|
+
|
393
|
+
#
|
394
|
+
|
395
|
+
hdf5 yes yes /home/tsubasa/Code_Saturne/6.0.5/hdf5-1.10.6/arch/Linux_x86_64
|
396
|
+
|
397
|
+
cgns yes yes /home/tsubasa/Code_Saturne/6.0.5/cgns-4.1.1/arch/Linux_x86_64
|
398
|
+
|
399
|
+
med yes yes /home/tsubasa/Code_Saturne/6.0.5/med-4.0.0/arch/Linux_x86_64
|
400
|
+
|
401
|
+
scotch yes yes /home/tsubasa/Code_Saturne/6.0.5/scotch-6.0.9/arch/Linux_x86_64
|
402
|
+
|
403
|
+
parmetis yes yes /home/tsubasa/Code_Saturne/6.0.5/parmetis-4.0.3/arch/Linux_x86_64
|
404
|
+
|
405
|
+
#
|
406
|
+
|
407
|
+
#========================================================
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
```
|
412
|
+
|
413
|
+
次に
|
414
|
+
|
415
|
+
```ここに言語を入力
|
416
|
+
|
417
|
+
install_saturne.py(ダウンロードすれば最初からあります)
|
418
|
+
|
419
|
+
```
|
420
|
+
|
421
|
+
のjobを投げることでコンパイルとインストールは終了します。これは問題なくできたかと思います。
|