Skip to content

Commit

Permalink
Merge pull request #24760 from ax3l/add-waket
Browse files Browse the repository at this point in the history
Add Wake-T
  • Loading branch information
ocefpaf authored Dec 20, 2023
2 parents b28fb70 + a2bec27 commit b6884ba
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
62 changes: 62 additions & 0 deletions recipes/wake-t/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{% set version = "0.7.1" %}

package:
name: wake-t
version: {{ version }}

source:
url: https://github.com/AngelFP/Wake-T/archive/refs/tags/v{{ version }}.tar.gz
sha256: 9386cc52ca98e272518686da3e02a690363ecde689f7b03b07aeb2ecece2ee05

build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv

requirements:
host:
- pip
- python >=3.8
- setuptools
run:
- aptools
- numba
- numpy
- openpmd-api
- python >=3.8
- scipy
- tqdm

test:
requires:
- matplotlib-base
- openpmd-viewer
- python
- pytest
source_files:
- examples/
- tests/
imports:
- wake_t

about:
home: https://wake-t.readthedocs.io
license: GPL-3.0-or-later
license_family: GPL3
license_file: LICENSE
summary: A fast tracking code for plasma accelerators

description: |
Wake-T (Wakefield particle Tracker) is a tracking code for laser- and
beam-driven plasma wakefield accelerators which aims at providing a fast
alternative to Particle-in-Cell (PIC) simulations. Instead of relying on
the computationally-expensive PIC algorithm for simulating the plasma
wakefields and the beam evolution, Wake-T uses a Runge-Kutta solver to
track the evolution of the beam electrons in the wakefields, which, at
the same time, are computed from reduced models.
dev_url: https://github.com/AngelFP/Wake-T

extra:
recipe-maintainers:
- AngelFP
- ax3l
7 changes: 7 additions & 0 deletions recipes/wake-t/run_test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@echo on

set "OMP_NUM_THREADS=2"

:: pytest
%PYTHON% -m pytest -s -vvvv tests\
if errorlevel 1 exit 1
8 changes: 8 additions & 0 deletions recipes/wake-t/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -eu -x -o pipefail

export OMP_NUM_THREADS=2

# pytest
$PYTHON -m pytest -s -vvvv tests/

0 comments on commit b6884ba

Please sign in to comment.