ADD: first commit

This commit is contained in:
2024-05-16 11:01:56 +02:00
parent 934b57b1b4
commit 1295f4db59
31 changed files with 815 additions and 66838 deletions

View File

@ -0,0 +1,31 @@
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Mithra(MakefilePackage):
"""MITHRA is a full-wave numerical solver for free-electron lasers"""
homepage = "https://github.com/aryafallahi/mithra/tree/master"
url = "https://github.com/aryafallahi/mithra/archive/refs/tags/2.0.tar.gz"
maintainers("germanne", "gsell")
license("UNKNOWN")
version("2.0", sha256="66f27ba6ca2c1ab05abb76338d00e661a6fe96b95283b85409c37625b4758deb")
variant("mpi", default=True, description="Enable MPI support")
depends_on("mpi", when="+mpi")
conflicts("~mpi")
def setup_build_environment(self, env):
env.set("PREFIX", prefix)
def edit(self, spec, prefix):
pass