2021-01-10 13:40:19 +01:00
|
|
|
{ lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }:
|
2018-08-19 00:20:45 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-01 22:31:19 +02:00
|
|
|
pname = "getdp";
|
2019-04-30 12:15:15 +02:00
|
|
|
version = "3.3.0";
|
2018-08-19 00:20:45 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://getdp.info/src/getdp-${version}-source.tgz";
|
2019-04-30 12:15:15 +02:00
|
|
|
sha256 = "1pfviy2bw8z5y6c15czvlvyjjg9pvpgrj9fr54xfi2gmvs7zkgpf";
|
2018-08-19 00:20:45 +02:00
|
|
|
};
|
|
|
|
|
2021-07-01 22:31:19 +02:00
|
|
|
inherit (petsc) mpiSupport;
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
|
|
buildInputs = [ gfortran blas lapack petsc ]
|
|
|
|
++ lib.optional mpiSupport mpi
|
|
|
|
;
|
|
|
|
cmakeFlags = lib.optional mpiSupport "-DENABLE_MPI=1";
|
2018-08-19 00:20:45 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-19 00:20:45 +02:00
|
|
|
description = "A General Environment for the Treatment of Discrete Problems";
|
|
|
|
longDescription = ''
|
2019-04-30 12:15:15 +02:00
|
|
|
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.
|
2018-08-19 00:20:45 +02:00
|
|
|
'';
|
2019-04-30 12:15:15 +02:00
|
|
|
homepage = "http://getdp.info/";
|
|
|
|
license = licenses.gpl2Plus;
|
2018-08-19 00:20:45 +02:00
|
|
|
maintainers = with maintainers; [ wucke13 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|