Skip to content

Instantly share code, notes, and snippets.

@eschnett
eschnett / slab.f90
Created November 12, 2020 20:44
Non-local boundary conditions
! Apply various non-local boundary conditions to a 3d grid
module slab
implicit none
integer, parameter :: nghosts = 2
contains
! Given an input array that is defined in the interior (on the dots
! and stars), fill the boundaries by rotating the array by 90
This file has been truncated, but you can view the full file.
==> llvm: Executing phase: 'cmake'
==> [2020-10-16-12:14:06.276723] 'cmake' '-G' 'Unix Makefiles' '-DCMAKE_INSTALL_PREFIX:STRING=/Users/eschnett/src/spack/opt/spack/darwin-catalina-x86_64/gcc-10.2.0/llvm-11.0.0-u2vfnjrpev6crbs4cq2jk4l7htlx65me' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' '-DCMAKE_FIND_FRAMEWORK:STRING=LAST' '-DCMAKE_FIND_APPBUNDLE:STRING=LAST' '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF' '-DCMAKE_INSTALL_RPATH:STRING=/Users/eschnett/src/spack/opt/spack/darwin-catalina-x86_64/gcc-10.2.0/llvm-11.0.0-u2vfnjrpev6crbs4cq2jk4l7htlx65me/lib;/Users/eschnett/src/spack/opt/spack/darwin-catalina-x86_64/gcc-10.2.0/llvm-11.0.0-u2vfnjrpev6crbs4cq2jk4l7htlx65me/lib64;/Users/eschnett/src/spack/opt/spack/darwin-catalina-x86_64/gcc-10.2.0/hwloc-2.2.0-7u5wgsvkbn472w52wxnjfpx4p5zudhy7/lib;/Users/eschnett/src/spack/opt/spack/darwin-catalina-x86_64/apple-clang-11.0.3/libxml2-2.9.10-4vioaryckgru336dgvk2iot3enqylzpd/lib;/Users/eschnett/src/spack/opt/spack/darwin-catalina-x86_64/apple-cla
# Build on the regular Caliban image
FROM gcr.io/blueshift-playground/blueshift:cpu
# Install system packages
# Note: Boost on Ubuntu requires OpenMPI
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get --yes --no-install-recommends install \
build-essential \
ca-certificates \
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/eschnett/spack-stage/spack-stage-gcc-10.1.0-7o2dyx4fldafohhwmlqnmt6yaupnghsl/spack-src/configure --prefix=/Users/eschnett/src/spack-develop/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/gcc-10.1.0-7o2dyx4fldafohhwmlqnmt6yaupnghsl --with-pkgversion=Spack GCC --with-bugurl=https://github.com/spack/spack/issues --disable-multilib --enable-languages=c,c++,fortran --disable-nls --with-mpfr=/Users/eschnett/src/spack-develop/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/mpfr-4.0.2-66qgcss2bdiyljg4ow4lhogowuypzrol --with-gmp=/Users/eschnett/src/spack-develop/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/gmp-6.1.2-bfwgwkc4tat3gjfxvj4pxfjqh354t2ue --with-system-zlib --with-zstd=/Users/eschnett/src/spack-develop/opt/spack/darw
```Haskell
upload :: Async FilePath -> Async (Either () ())
upload files =
asyncly
$ maxThreads 10
$ S.concatMap S.fromList
|$ serially
$ S.mapM finalizeUploads
|$ asyncly
$ S.chunksOf 1000 FL.toList
In [1]:
pwd()
Out[1]:
'/Users/eschnett/Camrex'
In [2]:
import yt
In [3]:
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-type-defaults #-}
module Poisson (main) where
import Prelude hiding (id, (.))
import qualified Prelude
import Data.Kind
import Math.Polynomial hiding (x)
@eschnett
eschnett / headers-10.14.4-fix.patch
Created March 28, 2019 22:59
Make gcc 8.3.0 build on MacOS 10.14.4
diff -ruN gcc-8.3.0-old/fixincludes/fixincl.x gcc-8.3.0/fixincludes/fixincl.x
--- gcc-8.3.0-old/fixincludes/fixincl.x 2018-02-22 11:12:26.000000000 -0500
+++ gcc-8.3.0/fixincludes/fixincl.x 2019-03-28 15:59:33.000000000 -0400
@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed February 22, 2018 at 03:46:51 PM by AutoGen 5.18
+ * It has been AutoGen-ed March 28, 2019 at 03:59:33 PM by AutoGen 5.18.16
* From the definitions inclhack.def
@eschnett
eschnett / MAKE.OUT
Created November 16, 2018 20:26
amuse-11.2 on MacOS
/Users/eschnett/anaconda3/bin/python setup.py build
running build
running build_py
copying src/amuse/config.py -> build/lib/amuse
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running configure_codes
Already configured, not running configure
@eschnett
eschnett / CONFIGURE.OUT
Created November 16, 2018 20:25
amuse-11.2 on MacOS
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++