Compare commits
8 Commits
versioning
...
master
Author | SHA1 | Date |
---|---|---|
Marek Nečada | 33d144cf68 | |
Marek Nečada | 53764f3dd1 | |
Marek Nečada | f9620e1d11 | |
Marek Nečada | 5e4f9130fb | |
Marek Nečada | 03e5be17f9 | |
Marek Nečada | 74ce35605b | |
Marek Nečada | 2a85b16347 | |
Marek Nečada | ac0d322246 |
12
.drone.yml
12
.drone.yml
|
@ -69,7 +69,15 @@ steps:
|
|||
- make install
|
||||
- export LIBRARY_PATH=$HOME/.local/lib
|
||||
- python3 setup.py install --user
|
||||
- cd examples/rectangular/modes
|
||||
- pip3 install --user matplotlib #needed to run the example
|
||||
- pip3 install --user matplotlib #needed to run the examples
|
||||
- export LD_LIBRARY_PATH=$HOME/.local/lib
|
||||
- cd examples/rectangular/modes
|
||||
- ./01a_realfreq_svd.sh
|
||||
- cd -
|
||||
- cd examples/hexagonal/modes
|
||||
#- ./01a_realfreq_svd.sh
|
||||
#- ./01_compute_modes.sh
|
||||
#- ./02b_compute_disp_0M.sh
|
||||
#- ./02_compute_disp.sh
|
||||
#- ./02x_compute_disp.sh
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
FROM alpine:latest AS commondeps
|
||||
RUN apk update \
|
||||
&& apk add cmake python3-dev py3-pip gcc g++ wget git make libc-dev \
|
||||
&& apk add cmake python3-dev py3-pip gcc g++ wget git make libc-dev bc \
|
||||
&& adduser -D qpmsbuild
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
FROM debian:stable AS commondeps
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install --no-install-recommends build-essential cmake python3 python3-pip git wget python3-dev \
|
||||
&& apt-get -y install --no-install-recommends build-essential cmake python3 python3-pip git wget python3-dev bc \
|
||||
&& apt-get clean \
|
||||
&& useradd -m qpmsbuild
|
||||
|
||||
|
|
|
@ -254,7 +254,7 @@ outfile = defaultprefix + ".npz" if a.output is None else a.output
|
|||
np.savez(outfile, meta={**vars(a), 'qpms_version' : qpms.__version__()},
|
||||
omega=omega, wavenumber=wavenumber, nelem=nelem, wavevector=np.array(a.wavevector), phases=phases,
|
||||
positions = ss.positions[:,:2],
|
||||
scattered_ir_packed = scattered_ir,
|
||||
scattered_ir_packed = np.array(scattered_ir, dtype=np.object),
|
||||
scattered_full = scattered_full,
|
||||
ir_contained = ir_contained,
|
||||
t=t, l=l, m=m,
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from qpms.argproc import ArgParser, annotate_pdf_metadata
|
||||
import math
|
||||
pi = math.pi
|
||||
from qpms.argproc import ArgParser
|
||||
|
||||
|
||||
ap = ArgParser(['rectlattice2d_finite', 'single_particle', 'single_lMax', 'omega_seq_real_ng', 'planewave'])
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import sympy
|
||||
from sympy.combinatorics import Permutation, PermutationGroup
|
||||
Permutation.print_cyclic = True
|
||||
sympy.init_printing(perm_cyclic = True)
|
||||
import cmath
|
||||
from cmath import exp, pi
|
||||
from math import sqrt
|
||||
|
|
|
@ -131,7 +131,7 @@ size_t *qpms_vswf_set_reindex(const qpms_vswf_set_spec_t *small, const qpms_vswf
|
|||
while(big_pairs[bi].ui < small_pairs[si].ui)
|
||||
++bi;
|
||||
if(big_pairs[bi].ui == small_pairs[si].ui)
|
||||
r[small_pairs[si].i_orig] = big_pairs[si].i_orig;
|
||||
r[small_pairs[si].i_orig] = big_pairs[bi].i_orig;
|
||||
else
|
||||
r[small_pairs[si].i_orig] = ~(size_t)0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue