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,15 @@
Common subdirectories: mithra-2.0.orig/doc and mithra-2.0/doc
diff -u mithra-2.0.orig/makefile mithra-2.0/makefile
--- mithra-2.0.orig/makefile 2020-09-29 14:50:06.000000000 +0200
+++ mithra-2.0/makefile 2022-09-29 11:56:42.000000000 +0200
@@ -1,6 +1,7 @@
SHELL = /bin/sh
COMP = mpic++
+CFLAGS+=-fPIC
CFLAGS+=-std=c++11
CFLAGS+=-O3
Only in mithra-2.0: obj
Common subdirectories: mithra-2.0.orig/prj and mithra-2.0/prj
Common subdirectories: mithra-2.0.orig/src and mithra-2.0/src

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