-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsnapcraft.yaml
79 lines (79 loc) · 2.27 KB
/
snapcraft.yaml
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
name: suanpan
base: core24
confinement: strict
contact: tlcfem@gmail.com
donation: https://ko-fi.com/suanpan
grade: stable
icon: Resource/suanPan-ua.svg
issues: https://github.com/TLCFEM/suanPan/issues
license: GPL-3.0
source-code: https://github.com/TLCFEM/suanPan
summary: An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
version: "3.7"
website: https://bit.ly/suanpan-doc
description: |
[**suanPan**](https://github.com/TLCFEM/suanPan) is a finite element method (FEM) simulation platform for applications
in fields such as solid mechanics and civil/structural/seismic engineering. **suanPan** is written in modern high
quality C++ code and is targeted to provide an efficient, concise, flexible and reliable FEM simulation platform.
platforms:
amd64:
build-on: amd64
build-for: amd64
apps:
suanpan:
command: bin/suanPan
environment:
LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/dri
plugs:
- home
- desktop
- desktop-legacy
- wayland
- unity7
- opengl
parts:
suanpan:
source: https://github.com/TLCFEM/suanPan.git
plugin: cmake
cmake-generator: Ninja
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=
- -DCMAKE_BUILD_TYPE=Release
- -DBUILD_MULTITHREAD=ON
- -DUSE_AVX2=OFF
- -DUSE_HDF5=ON
- -DUSE_VTK=ON
- -DVTK_DIR=$CRAFT_PART_BUILD/lib/cmake/vtk-9.4/
- -DUSE_MKL=ON
- -DUSE_INTEL_OPENMP=OFF
- -DLINK_DYNAMIC_MKL=OFF
build-packages:
- gcc
- g++
- gfortran
- wget
- mesa-common-dev
- mesa-utils
- freeglut3-dev
- libglvnd-dev
override-build: |
wget -q https://github.com/TLCFEM/prebuilds/releases/download/latest/VTK-9.4.1-linux.tar.gz
tar xf VTK-9.4.1-linux.tar.gz
wget -q https://registrationcenter-download.intel.com/akdlm/IRC_NAS/246ea40e-5aa7-42a4-81fa-0c029dc8650f/intel-onemkl-2025.0.1.16_offline.sh
sh ./intel-onemkl-2025.0.1.16_offline.sh -a --silent --eula accept
craftctl default
stage-packages:
- libgfortran5
- libgl1
- libglx0
- libgomp1
- libice6
- libquadmath0
- libsm6
- libx11-6
- libxt6
- libglvnd0
- libopengl0
- libxau6
- libxcb1
- libxdmcp6