@@ -0,0 +1,2279 @@
+##############################################################################%0A# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.%0A# Produced at the Lawrence Livermore National Laboratory.%0A#%0A# This file is part of Spack.%0A# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.%0A# LLNL-CODE-647188%0A#%0A# For details, see https://github.com/llnl/spack%0A# Please also see the LICENSE file for our notice and the LGPL.%0A#%0A# This program is free software; you can redistribute it and/or modify%0A# it under the terms of the GNU Lesser General Public License (as%0A# published by the Free Software Foundation) version 2.1, February 1999.%0A#%0A# This program is distributed in the hope that it will be useful, but%0A# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and%0A# conditions of the GNU Lesser General Public License for more details.%0A#%0A# You should have received a copy of the GNU Lesser General Public%0A# License along with this program; if not, write to the Free Software%0A# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA%0A##############################################################################%0Afrom spack import *%0A%0A%0Aclass ScorecCore(CMakePackage):%0A    %22%22%22The SCOREC Core is a set of C/C++ libraries for unstructured mesh%0A    simulations on supercomputers.%0A    %22%22%22%0A%0A    homepage = 'https://www.scorec.rpi.edu/'%0A    url = 'https://github.com/SCOREC/core.git'%0A%0A    version('develop', git=url)%0A%0A    depends_on('mpi')%0A    depends_on('zoltan')%0A    depends_on('cmake@3.0:', type='build')%0A%0A    @property%0A    def std_cmake_args(self):%0A        # Default cmake RPATH options causes build failure on bg-q%0A        if self.spec.satisfies('platform=bgq'):%0A            return %5B'-DCMAKE_INSTALL_PREFIX:PATH=%7B0%7D'.format(self.prefix)%5D%0A        else:%0A            return self._std_args(self)%0A%0A    def cmake_args(self):%0A        options = %5B%5D%0A        options.append('-DCMAKE_C_COMPILER=%25s' %25 self.spec%5B'mpi'%5D.mpicc)%0A        options.append('-DCMAKE_CXX_COMPILER=%25s' %25 self.spec%5B'mpi'%5D.mpicxx)%0A        options.append('-DENABLE_ZOLTAN=ON')%0A%0A        if self.compiler.name == 'xl':%0A            options.append('-DSCOREC_EXTRA_CXX_FLAGS=%25s' %25 '-qminimaltoc')%0A%0A        return options%0A

Add SCOREC Core package for unstructured mesh simulations. (#3202)