1 { lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }:
4 mpiSupport = petsc.passthru.mpiSupport;
5 in stdenv.mkDerivation rec {
9 url = "http://getdp.info/src/getdp-${version}-source.tgz";
10 hash = "sha256-nzefwCV+Z9BHDofuTfhR+vhqm3cCSiUT+7cbtn601N8=";
13 nativeBuildInputs = [ cmake python3 ];
14 buildInputs = [ gfortran blas lapack petsc ]
15 ++ lib.optional mpiSupport mpi
17 cmakeFlags = lib.optional mpiSupport "-DENABLE_MPI=1";
20 description = "General Environment for the Treatment of Discrete Problems";
21 mainProgram = "getdp";
23 GetDP is a free finite element solver using mixed elements to discretize
24 de Rham-type complexes in one, two and three dimensions. The main
25 feature of GetDP is the closeness between the input data defining
26 discrete problems (written by the user in ASCII data files) and the
27 symbolic mathematical expressions of these problems.
29 homepage = "http://getdp.info/";
30 license = licenses.gpl2Plus;
32 platforms = platforms.linux;