2021-01-10 12:40:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, gfortran, blas, lapack, mpi, petsc, python3 }:
|
2018-08-18 22:20:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-01 20:31:19 +00:00
|
|
|
pname = "getdp";
|
2022-07-31 09:45:24 +00:00
|
|
|
version = "3.5.0";
|
2018-08-18 22:20:45 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://getdp.info/src/getdp-${version}-source.tgz";
|
2022-07-31 09:45:24 +00:00
|
|
|
sha256 = "sha256-C/dsSe+puIQBpFfBL3qr2XWXrUnvYy0/uTCKqOpDe9w=";
|
2018-08-18 22:20:45 +00:00
|
|
|
};
|
|
|
|
|
2021-07-01 20:31:19 +00: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-18 22:20:45 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-18 22:20:45 +00:00
|
|
|
description = "A General Environment for the Treatment of Discrete Problems";
|
|
|
|
longDescription = ''
|
2019-04-30 10:15:15 +00: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-18 22:20:45 +00:00
|
|
|
'';
|
2019-04-30 10:15:15 +00:00
|
|
|
homepage = "http://getdp.info/";
|
|
|
|
license = licenses.gpl2Plus;
|
2022-02-21 08:31:34 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-08-18 22:20:45 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|