summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ge/getdp/package.nix
blob: 38b4807c8fa8f8781863eda5ea3630d08d4b5189 (plain)
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
{
  lib,
  stdenv,
  fetchFromGitLab,
  cmake,
  gfortran,
  blas,
  lapack,
  mpi,
  petsc,
  python3,
}:

let
  mpiSupport = petsc.passthru.mpiSupport;
in
stdenv.mkDerivation {
  pname = "getdp";
  version = "3.6.0-unstable-2025-10-25";

  src = fetchFromGitLab {
    domain = "gitlab.onelab.info";
    owner = "getdp";
    repo = "getdp";
    rev = "cac7f393ac34be1618b588083d2e391efd4976f7";
    hash = "sha256-yiqi9Fb3UM81iJtpU+Mg71BB73injdkWCzbJGgor4ww=";
  };

  nativeBuildInputs = [
    cmake
    python3
  ];
  buildInputs = [
    gfortran
    blas
    lapack
    petsc
  ]
  ++ lib.optional mpiSupport mpi;
  cmakeFlags = lib.optional mpiSupport "-DENABLE_MPI=1";

  meta = {
    description = "General Environment for the Treatment of Discrete Problems";
    mainProgram = "getdp";
    longDescription = ''
      GetDP is a free finite element solver using mixed elements to discretize
      de Rham-type complexes in one, two and three dimensions.  The main
      feature of GetDP is the closeness between the input data defining
      discrete problems (written by the user in ASCII data files) and the
      symbolic mathematical expressions of these problems.
    '';
    homepage = "http://getdp.info/";
    license = lib.licenses.gpl2Plus;
    maintainers = [ ];
    platforms = lib.platforms.linux;
  };
}