diff --git a/science/Makefile b/science/Makefile index b1371a5909d0..421d2e26b93e 100644 --- a/science/Makefile +++ b/science/Makefile @@ -1,385 +1,386 @@ COMMENT = Scientific ports SUBDIR += 2d-rewriter SUBDIR += ALPSCore SUBDIR += InsightToolkit SUBDIR += PETSc SUBDIR += R-cran-AMORE SUBDIR += R-cran-DCluster SUBDIR += R-cran-Epi SUBDIR += R-cran-FAdist SUBDIR += R-cran-bayesm SUBDIR += R-cran-cmprsk SUBDIR += R-cran-e1071 SUBDIR += R-cran-eco SUBDIR += R-cran-epicalc SUBDIR += R-cran-etm SUBDIR += R-cran-fastICA SUBDIR += R-cran-kernlab SUBDIR += R-cran-snow SUBDIR += R-cran-som SUBDIR += R-cran-udunits2 SUBDIR += abinit SUBDIR += afni SUBDIR += agrum SUBDIR += aircraft-datcom SUBDIR += antioch SUBDIR += apbs SUBDIR += ascent SUBDIR += atompaw SUBDIR += avogadro2 SUBDIR += avogadrolibs SUBDIR += axom SUBDIR += bagel SUBDIR += bddsolve SUBDIR += berkeleygw SUBDIR += bodr SUBDIR += buddy SUBDIR += cantera SUBDIR += cdcl SUBDIR += cdf SUBDIR += cdk SUBDIR += cdo SUBDIR += cgnslib SUBDIR += cgribex SUBDIR += checkmol SUBDIR += chemical-mime-data SUBDIR += chemps2 SUBDIR += chemtool SUBDIR += chemtool-devel SUBDIR += chrono SUBDIR += clhep SUBDIR += clipper SUBDIR += code_saturne SUBDIR += colt SUBDIR += conduit SUBDIR += coordgenlibs SUBDIR += cp2k SUBDIR += cp2k-data SUBDIR += crf++ SUBDIR += csvtk SUBDIR += dakota SUBDIR += dalton SUBDIR += dcl SUBDIR += devisor SUBDIR += dftbplus SUBDIR += dkh SUBDIR += dlib-cpp SUBDIR += drawxtl SUBDIR += dvc SUBDIR += dynare SUBDIR += eccodes SUBDIR += elk SUBDIR += elmerfem SUBDIR += epte SUBDIR += erd SUBDIR += ergo SUBDIR += erkale SUBDIR += erkale-pseudopotentials SUBDIR += fastcap SUBDIR += fasthenry SUBDIR += fastjet SUBDIR += fisicalab SUBDIR += frontistr SUBDIR += fsom SUBDIR += fvcom SUBDIR += fvcom-mpi SUBDIR += gabedit SUBDIR += gamess-us SUBDIR += gchemutils SUBDIR += gdma SUBDIR += getdp SUBDIR += ghemical SUBDIR += ghmm SUBDIR += gnudatalanguage SUBDIR += gpaw-setups SUBDIR += gramps SUBDIR += grib_api SUBDIR += gromacs SUBDIR += gsmc SUBDIR += gtamsanalyzer SUBDIR += h5utils SUBDIR += h5z-zfp SUBDIR += harminv SUBDIR += hdf SUBDIR += hdf5 SUBDIR += hdf5-18 SUBDIR += healpix SUBDIR += helfem SUBDIR += hepmc3 SUBDIR += highfive SUBDIR += hypre SUBDIR += iboview SUBDIR += isaac-cfd SUBDIR += jdftx SUBDIR += jmol SUBDIR += jstrack SUBDIR += kalzium SUBDIR += kim-api SUBDIR += kst2 SUBDIR += lammps SUBDIR += lamprop SUBDIR += latte SUBDIR += libaec SUBDIR += libccp4 SUBDIR += libcint SUBDIR += libctl SUBDIR += libecpint SUBDIR += libefp SUBDIR += libgeodecomp SUBDIR += libghemical SUBDIR += libgridxc SUBDIR += libint SUBDIR += libint2 SUBDIR += libkml SUBDIR += liblinear SUBDIR += libmsym SUBDIR += liboglappth SUBDIR += libquantum SUBDIR += libssm SUBDIR += libsvm SUBDIR += libsvm-python SUBDIR += libvdwxc SUBDIR += libxc SUBDIR += liggghts SUBDIR += luscus SUBDIR += madness SUBDIR += maeparser SUBDIR += massxpert SUBDIR += mbdyn SUBDIR += mcstas SUBDIR += mcstas-comps SUBDIR += mcxtrace SUBDIR += mcxtrace-comps SUBDIR += mdynamix SUBDIR += medit SUBDIR += metaphysicl SUBDIR += minc2 SUBDIR += mmdb2 SUBDIR += mmtf-cpp SUBDIR += mol2ps SUBDIR += molgif SUBDIR += molscript SUBDIR += molsketch SUBDIR += mpb SUBDIR += mpqc SUBDIR += msms SUBDIR += multiwfn SUBDIR += namd SUBDIR += nest SUBDIR += netcdf SUBDIR += netcdf-cxx SUBDIR += netcdf-fortran SUBDIR += nifticlib SUBDIR += nwchem SUBDIR += nwchem-data SUBDIR += octopus SUBDIR += openbabel SUBDIR += openems SUBDIR += openkim SUBDIR += openkim-models + SUBDIR += openmc SUBDIR += openmx SUBDIR += opensim-core SUBDIR += opensph SUBDIR += opsin SUBDIR += orthanc SUBDIR += orthanc-dicomweb SUBDIR += orthanc-mysql SUBDIR += orthanc-postgresql SUBDIR += orthanc-webviewer SUBDIR += p5-Algorithm-SVMLight SUBDIR += p5-Chemistry-3DBuilder SUBDIR += p5-Chemistry-Bond-Find SUBDIR += p5-Chemistry-Canonicalize SUBDIR += p5-Chemistry-Elements SUBDIR += p5-Chemistry-File-MDLMol SUBDIR += p5-Chemistry-File-Mopac SUBDIR += p5-Chemistry-File-PDB SUBDIR += p5-Chemistry-File-SLN SUBDIR += p5-Chemistry-File-SMARTS SUBDIR += p5-Chemistry-File-SMILES SUBDIR += p5-Chemistry-File-VRML SUBDIR += p5-Chemistry-File-XYZ SUBDIR += p5-Chemistry-FormulaPattern SUBDIR += p5-Chemistry-InternalCoords SUBDIR += p5-Chemistry-Isotope SUBDIR += p5-Chemistry-MacroMol SUBDIR += p5-Chemistry-MidasPattern SUBDIR += p5-Chemistry-Mok SUBDIR += p5-Chemistry-Mol SUBDIR += p5-Chemistry-Pattern SUBDIR += p5-Chemistry-Reaction SUBDIR += p5-Chemistry-Ring SUBDIR += p5-Geo-BUFR SUBDIR += p5-Geo-Coordinates-Converter SUBDIR += p5-Geo-Coordinates-Converter-iArea SUBDIR += p5-Geo-WebService-Elevation-USGS SUBDIR += p5-Mcstas-Tools SUBDIR += p5-PerlMol SUBDIR += p5-Physics-Unit SUBDIR += packmol SUBDIR += pagmo2 SUBDIR += paje SUBDIR += pcmsolver SUBDIR += phonopy SUBDIR += plumed SUBDIR += pnetcdf SUBDIR += pulseview SUBDIR += py-DendroPy SUBDIR += py-GPy SUBDIR += py-GPyOpt SUBDIR += py-MDAnalysis SUBDIR += py-MDAnalysisTests SUBDIR += py-OpenFermion SUBDIR += py-PubChemPy SUBDIR += py-PyFR SUBDIR += py-PyNE SUBDIR += py-SimpleSpectral SUBDIR += py-abipy SUBDIR += py-access SUBDIR += py-asdf SUBDIR += py-ase SUBDIR += py-avogadrolibs SUBDIR += py-cdo SUBDIR += py-chainer SUBDIR += py-chainer-chemistry SUBDIR += py-chempy SUBDIR += py-cirq-aqt SUBDIR += py-cirq-core SUBDIR += py-cirq-google SUBDIR += py-cirq-ionq SUBDIR += py-cirq-pasqal SUBDIR += py-coards SUBDIR += py-dipy SUBDIR += py-dlib SUBDIR += py-eccodes SUBDIR += py-esda SUBDIR += py-geolinks SUBDIR += py-geomet SUBDIR += py-geometer SUBDIR += py-geometric SUBDIR += py-gpaw SUBDIR += py-gsd SUBDIR += py-h5json SUBDIR += py-h5py SUBDIR += py-hiphive SUBDIR += py-inequality SUBDIR += py-jupyter_jsmol SUBDIR += py-kim-query SUBDIR += py-kinematics SUBDIR += py-kliff SUBDIR += py-liac-arff SUBDIR += py-libpysal SUBDIR += py-lifelines SUBDIR += py-mdp SUBDIR += py-mmtf-python SUBDIR += py-molmod SUBDIR += py-moltemplate SUBDIR += py-netCDF4 SUBDIR += py-netcdf-flattener SUBDIR += py-nibabel SUBDIR += py-nilearn SUBDIR += py-obspy SUBDIR += py-oddt SUBDIR += py-openpiv SUBDIR += py-paida SUBDIR += py-paramz SUBDIR += py-phono3py SUBDIR += py-phonopy SUBDIR += py-pupynere SUBDIR += py-pyaixi SUBDIR += py-pycsw SUBDIR += py-pydicom SUBDIR += py-pygeodesy SUBDIR += py-pygeometa SUBDIR += py-pygmo2 SUBDIR += py-pyked SUBDIR += py-pymatgen SUBDIR += py-pymol SUBDIR += py-pyosf SUBDIR += py-pysal SUBDIR += py-pyscf SUBDIR += py-pyteomics SUBDIR += py-qcelemental SUBDIR += py-qcengine SUBDIR += py-qspin SUBDIR += py-quantities SUBDIR += py-rmf SUBDIR += py-rmsd SUBDIR += py-ruffus SUBDIR += py-scikit-fuzzy SUBDIR += py-scikit-learn SUBDIR += py-scikit-optimize SUBDIR += py-scikit-sparse SUBDIR += py-scimath SUBDIR += py-scipy SUBDIR += py-scoria SUBDIR += py-segregation SUBDIR += py-segyio SUBDIR += py-skrebate SUBDIR += py-spaghetti SUBDIR += py-spglib SUBDIR += py-tensorflow SUBDIR += py-tobler SUBDIR += py-veusz SUBDIR += pybrain SUBDIR += pynn SUBDIR += qbox SUBDIR += qcl SUBDIR += qiskit-aer SUBDIR += qmcpack SUBDIR += quantum-espresso SUBDIR += quantum-espresso-pseudopotentials SUBDIR += qwalk SUBDIR += rdkit SUBDIR += rmf SUBDIR += rubygem-ai4r SUBDIR += rubygem-cdo SUBDIR += rubygem-rgeo SUBDIR += rubygem-rgeo-geojson SUBDIR += rubygem-rgeo-proj4 SUBDIR += rubygem-rgeo-shapefile SUBDIR += rubygem-ruby-dcl SUBDIR += rubygem-ruby-netcdf SUBDIR += scidavis SUBDIR += segyio SUBDIR += shelxle SUBDIR += siconos SUBDIR += siesta SUBDIR += sigrok-cli SUBDIR += sigrok-firmware SUBDIR += sigrok-firmware-fx2lafw SUBDIR += sigrok-firmware-utils SUBDIR += silo SUBDIR += simbody SUBDIR += simgrid SUBDIR += simint SUBDIR += simlib SUBDIR += simsmith SUBDIR += smoldyn SUBDIR += sparta SUBDIR += spglib SUBDIR += step SUBDIR += svmlight SUBDIR += szip SUBDIR += teem SUBDIR += tfel SUBDIR += tfel-edf SUBDIR += thermofun SUBDIR += tinker SUBDIR += udunits SUBDIR += v_sim SUBDIR += vipster SUBDIR += vmd SUBDIR += voro++ SUBDIR += votca SUBDIR += wannier90 SUBDIR += wwplot SUBDIR += wxmacmolplt SUBDIR += xcfun SUBDIR += xcrysden SUBDIR += xdrawchem SUBDIR += xtb SUBDIR += yoda .include diff --git a/science/openmc/Makefile b/science/openmc/Makefile new file mode 100644 index 000000000000..178c65250c23 --- /dev/null +++ b/science/openmc/Makefile @@ -0,0 +1,43 @@ +PORTNAME= openmc +DISTVERSIONPREFIX= v +DISTVERSION= 0.12.2 +CATEGORIES= science + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Monte Carlo neutron and photon transport simulation code + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= xtensor>0:math/xtensor +LIB_DEPENDS= libfmt.so:devel/libfmt \ + libhdf5.so:science/hdf5 \ + libpugixml.so:textproc/pugixml \ + libsz.so:science/szip + +USES= cmake:noninja eigen:3 pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= ${PORTNAME}-dev +GH_TUPLE= martinmoene:gsl-lite:913e86d:gsl_lite/vendor/gsl-lite + +BINARY_ALIAS= git=false + +OPTIONS_DEFINE= LIBMESH MPI OPENMP +OPTIONS_DEFAULT= MPI OPENMP + +LIBMESH_DESC= Support for libMesh unstructured mesh tallies +LIBMESH_CMAKE_BOOL= libmesh +LIBMESH_LIB_DEPENDS= libmesh_opt.so:math/libmesh +LIBMESH_BROKEN= https://github.com/openmc-dev/openmc/issues/1893 + +MPI_VARS= CXX=${LOCALBASE}/mpi/openmpi/bin/mpic++ +MPI_BUILD_DEPENDS= openmpi>0:net/openmpi +MPI_RUN_DEPENDS= openmpi>0:net/openmpi + +OPENMP_CMAKE_BOOL= openmp + +post-install: + ${RM} -r ${STAGEDIR}${DOCSDIR} + +.include diff --git a/science/openmc/distinfo b/science/openmc/distinfo new file mode 100644 index 000000000000..cfecd2e87c2b --- /dev/null +++ b/science/openmc/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1633803853 +SHA256 (openmc-dev-openmc-v0.12.2_GH0.tar.gz) = 29ca66d0e7140357d747516807c91cbf1aace0ebc29dfe9650e9da3c2975dd94 +SIZE (openmc-dev-openmc-v0.12.2_GH0.tar.gz) = 8316985 +SHA256 (martinmoene-gsl-lite-913e86d_GH0.tar.gz) = 53f4ad67e182d58161ec297593af4139ccb2a8fd712ba9cd77d129b6f87c6b3b +SIZE (martinmoene-gsl-lite-913e86d_GH0.tar.gz) = 105966 diff --git a/science/openmc/files/patch-CMakeLists.txt b/science/openmc/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..039d87adf5a2 --- /dev/null +++ b/science/openmc/files/patch-CMakeLists.txt @@ -0,0 +1,28 @@ +- workaround for https://github.com/openmc-dev/openmc/issues/1891 +- fix xtl,xtensor dependencies + +--- CMakeLists.txt.orig 2021-06-14 14:22:01 UTC ++++ CMakeLists.txt +@@ -174,7 +174,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/. + endif() + + # Check to see if submodules exist (by checking one) +-if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pugixml/CMakeLists.txt") ++if(FALSE AND NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/vendor/pugixml/CMakeLists.txt") + message(FATAL_ERROR "The git submodules were not downloaded! GIT_SUBMODULE was \ + turned off or failed. Please update submodules and try again.") + endif() +@@ -206,9 +206,10 @@ if (NOT (CMAKE_VERSION VERSION_LESS 3.13)) + cmake_policy(SET CMP0079 NEW) + endif() + +-add_subdirectory(vendor/xtl) +-set(xtl_DIR ${CMAKE_CURRENT_BINARY_DIR}/vendor/xtl) +-add_subdirectory(vendor/xtensor) ++#add_subdirectory(vendor/xtl) ++#set(xtl_DIR ${CMAKE_CURRENT_BINARY_DIR}/vendor/xtl) ++#add_subdirectory(vendor/xtensor) ++find_package(xtensor REQUIRED) + + #=============================================================================== + # GSL header-only library diff --git a/science/openmc/pkg-descr b/science/openmc/pkg-descr new file mode 100644 index 000000000000..5f83fbdea530 --- /dev/null +++ b/science/openmc/pkg-descr @@ -0,0 +1,10 @@ +OpenMC is a community-developed Monte Carlo neutron and photon transport +simulation code. It is capable of performing fixed source, k-eigenvalue, and +subcritical multiplication calculations on models built using either a +constructive solid geometry or CAD representation. OpenMC supports both +continuous-energy and multigroup transport. The continuous-energy particle +interaction data is based on a native HDF5 format that can be generated from +ACE files produced by NJOY. Parallelism is enabled via a hybrid MPI and OpenMP +programming model. + +WWW: https://openmc.org/ diff --git a/science/openmc/pkg-plist b/science/openmc/pkg-plist new file mode 100644 index 000000000000..58e11ae2a3d2 --- /dev/null +++ b/science/openmc/pkg-plist @@ -0,0 +1,138 @@ +bin/openmc +include/faddeeva/Faddeeva.cc +include/faddeeva/Faddeeva.hh +include/gsl-lite/gsl-lite.hpp +include/gsl/gsl +include/gsl/gsl-lite.hpp +include/openmc/angle_energy.h +include/openmc/array.h +include/openmc/bank.h +include/openmc/boundary_condition.h +include/openmc/bremsstrahlung.h +include/openmc/capi.h +include/openmc/cell.h +include/openmc/cmfd_solver.h +include/openmc/constants.h +include/openmc/container_util.h +include/openmc/cross_sections.h +include/openmc/dagmc.h +include/openmc/distribution.h +include/openmc/distribution_angle.h +include/openmc/distribution_energy.h +include/openmc/distribution_multi.h +include/openmc/distribution_spatial.h +include/openmc/eigenvalue.h +include/openmc/endf.h +include/openmc/error.h +include/openmc/event.h +include/openmc/file_utils.h +include/openmc/finalize.h +include/openmc/geometry.h +include/openmc/geometry_aux.h +include/openmc/hdf5_interface.h +include/openmc/initialize.h +include/openmc/lattice.h +include/openmc/material.h +include/openmc/math_functions.h +include/openmc/memory.h +include/openmc/mesh.h +include/openmc/message_passing.h +include/openmc/mgxs.h +include/openmc/mgxs_interface.h +include/openmc/neighbor_list.h +include/openmc/nuclide.h +include/openmc/openmp_interface.h +include/openmc/output.h +include/openmc/particle.h +include/openmc/particle_data.h +include/openmc/particle_restart.h +include/openmc/photon.h +include/openmc/physics.h +include/openmc/physics_common.h +include/openmc/physics_mg.h +include/openmc/plot.h +include/openmc/position.h +include/openmc/progress_bar.h +include/openmc/random_dist.h +include/openmc/random_lcg.h +include/openmc/reaction.h +include/openmc/reaction_product.h +include/openmc/scattdata.h +include/openmc/search.h +include/openmc/secondary_correlated.h +include/openmc/secondary_kalbach.h +include/openmc/secondary_nbody.h +include/openmc/secondary_thermal.h +include/openmc/secondary_uncorrelated.h +include/openmc/settings.h +include/openmc/shared_array.h +include/openmc/simulation.h +include/openmc/source.h +include/openmc/state_point.h +include/openmc/string_utils.h +include/openmc/summary.h +include/openmc/surface.h +include/openmc/tallies/derivative.h +include/openmc/tallies/filter.h +include/openmc/tallies/filter_azimuthal.h +include/openmc/tallies/filter_cell.h +include/openmc/tallies/filter_cell_instance.h +include/openmc/tallies/filter_cellborn.h +include/openmc/tallies/filter_cellfrom.h +include/openmc/tallies/filter_collision.h +include/openmc/tallies/filter_delayedgroup.h +include/openmc/tallies/filter_distribcell.h +include/openmc/tallies/filter_energy.h +include/openmc/tallies/filter_energyfunc.h +include/openmc/tallies/filter_legendre.h +include/openmc/tallies/filter_match.h +include/openmc/tallies/filter_material.h +include/openmc/tallies/filter_mesh.h +include/openmc/tallies/filter_meshsurface.h +include/openmc/tallies/filter_mu.h +include/openmc/tallies/filter_particle.h +include/openmc/tallies/filter_polar.h +include/openmc/tallies/filter_sph_harm.h +include/openmc/tallies/filter_sptl_legendre.h +include/openmc/tallies/filter_surface.h +include/openmc/tallies/filter_universe.h +include/openmc/tallies/filter_zernike.h +include/openmc/tallies/tally.h +include/openmc/tallies/tally_scoring.h +include/openmc/tallies/trigger.h +include/openmc/thermal.h +include/openmc/timer.h +include/openmc/track_output.h +include/openmc/urr.h +include/openmc/vector.h +include/openmc/version.h +include/openmc/version.h.in +include/openmc/volume_calc.h +include/openmc/wmp.h +include/openmc/xml_interface.h +include/openmc/xsdata.h +lib/cmake/OpenMC/OpenMCConfig.cmake +lib/cmake/OpenMC/OpenMCConfigVersion.cmake +lib/cmake/OpenMC/OpenMCTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/OpenMC/OpenMCTargets.cmake +lib/cmake/gsl-lite/gsl-lite-config-version.cmake +lib/cmake/gsl-lite/gsl-lite-config.cmake +lib/cmake/gsl-lite/gsl-lite-targets.cmake +lib/libfaddeeva.a +lib/libopenmc.so +man/man1/openmc.1.gz +%%DATADIR%%/relaxng/cross_sections.rnc +%%DATADIR%%/relaxng/cross_sections.rng +%%DATADIR%%/relaxng/geometry.rnc +%%DATADIR%%/relaxng/geometry.rng +%%DATADIR%%/relaxng/materials.rnc +%%DATADIR%%/relaxng/materials.rng +%%DATADIR%%/relaxng/mg_cross_sections.rnc +%%DATADIR%%/relaxng/mg_cross_sections.rng +%%DATADIR%%/relaxng/plots.rnc +%%DATADIR%%/relaxng/plots.rng +%%DATADIR%%/relaxng/readme.rst +%%DATADIR%%/relaxng/settings.rnc +%%DATADIR%%/relaxng/settings.rng +%%DATADIR%%/relaxng/tallies.rnc +%%DATADIR%%/relaxng/tallies.rng