sampotter / jmm Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
(base) mkrishnan99@LAPTOP-SAUILUV3:/mnt/c/Users/meena/jmm/buildir$ /home/mkrishnan99/miniconda3/bin/python3 /mnt/c/Users/meena/jmm/buildir/examples/sound_prop/simulate.py
Traceback (most recent call last):
File "/mnt/c/Users/meena/jmm/buildir/examples/sound_prop/simulate.py", line 12, in <module>
import jmm
ModuleNotFoundError: No module named 'jmm'
(base) mkrishnan99@LAPTOP-SAUILUV3:/mnt/c/Users/meena/jmm/buildir$ meson compile
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /home/mkrishnan99/miniconda3/bin/ninja
[1/81] Compiling C object libjmm.so.p/src_cubic.c.o
FAILED: libjmm.so.p/src_cubic.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_cubic.c.o -MF libjmm.so.p/src_cubic.c.o.d -o libjmm.so.p/src_cubic.c.o -c ../src/cubic.c
../src/cubic.c: In function ‘cubic_from_lagrange_data’:
../src/cubic.c:26:18: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
26 | dbl44_dbl4_mul(Vinv, f, cubic.a);
| ^~~~
../src/cubic.c: In function ‘cubic_set_data’:
../src/cubic.c:41:18: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
41 | dbl44_dbl4_mul(V_inv, data, cubic->a);
| ^~~~~
../src/cubic.c: In function ‘cubic_reverse_on_unit_interval’:
../src/cubic.c:56:18: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
56 | dbl44_dbl4_mul(M, cubic->a, tmp);
| ^
cc1: all warnings being treated as errors
[2/81] Compiling C object libjmm.so.p/src_edge.c.o
FAILED: libjmm.so.p/src_edge.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_edge.c.o -MF libjmm.so.p/src_edge.c.o.d -o libjmm.so.p/src_edge.c.o -c ../src/edge.c
In file included from ../src/edge.c:8:
../src/edge.c: In function ‘make_edge’:
../src/macros.h:5:19: error: ISO C forbids braced-groups within expressions [-Werror=pedantic]
5 | #define MIN(x, y) ({ \
| ^
../src/edge.c:11:26: note: in expansion of macro ‘MIN’
11 | return (edge_s) {.l = {MIN(l0, l1), MAX(l0, l1)}};
| ^~~
../src/macros.h:11:19: error: ISO C forbids braced-groups within expressions [-Werror=pedantic]
11 | #define MAX(x, y) ({ \
| ^
../src/edge.c:11:39: note: in expansion of macro ‘MAX’
11 | return (edge_s) {.l = {MIN(l0, l1), MAX(l0, l1)}};
| ^~~
cc1: all warnings being treated as errors
[3/81] Compiling C object libjmm.so.p/src_bicubic.c.o
FAILED: libjmm.so.p/src_bicubic.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_bicubic.c.o -MF libjmm.so.p/src_bicubic.c.o.d -o libjmm.so.p/src_bicubic.c.o -c ../src/bicubic.c
../src/bicubic.c: In function ‘bicubic_set_data’:
../src/bicubic.c:36:13: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
36 | dbl44_mul(V_inv, data, tmp);
| ^~~~~
../src/bicubic.c:36:20: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
36 | dbl44_mul(V_inv, data, tmp);
| ^~~~
../src/bicubic.c:37:13: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
37 | dbl44_mul(tmp, V_inv_tr, bicubic->A);
| ^~~
../src/bicubic.c:37:18: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
37 | dbl44_mul(tmp, V_inv_tr, bicubic->A);
| ^~~~~~~~
../src/bicubic.c: In function ‘bicubic_get_fx_on_edge’:
../src/bicubic.c:66:13: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
66 | dbl44_mul(D_tr, bicubic->A, Ax);
| ^~~~
../src/bicubic.c:68:14: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
68 | restrict_A(Ax, var, edge, cubic.a);
| ^~
../src/bicubic.c: In function ‘bicubic_get_fy_on_edge’:
../src/bicubic.c:74:35: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
74 | dbl44 Ay; dbl44_mul(bicubic->A, D, Ay);
| ^
../src/bicubic.c:76:14: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
76 | restrict_A(Ay, var, edge, cubic.a);
| ^~
../src/bicubic.c: In function ‘interpolate_fxy_at_verts’:
../src/bicubic.c:129:29: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
129 | dbl4 tmp1; dbl44_dbl4_mul(Ax, fx, tmp1);
| ^~
../src/bicubic.c:130:29: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
130 | dbl4 tmp2; dbl44_dbl4_mul(Ay, fy, tmp2);
| ^~
cc1: all warnings being treated as errors
[5/81] Compiling C object libjmm.so.p/src_camera.c.o
FAILED: libjmm.so.p/src_camera.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_camera.c.o -MF libjmm.so.p/src_camera.c.o.d -o libjmm.so.p/src_camera.c.o -c ../src/camera.c
../src/camera.c: In function ‘camera_get_ray_for_index’:
../src/camera.c:56:28: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
56 | dbl33_dbl3_mul_inplace(mat, ray.org);
| ^~~
../src/camera.c:87:28: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
87 | dbl33_dbl3_mul_inplace(mat, ray.dir);
| ^~~
cc1: all warnings being treated as errors
[6/81] Compiling C object libjmm.so.p/src_eik2m1.c.o
FAILED: libjmm.so.p/src_eik2m1.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_eik2m1.c.o -MF libjmm.so.p/src_eik2m1.c.o.d -o libjmm.so.p/src_eik2m1.c.o -c ../src/eik2m1.c
../src/eik2m1.c: In function ‘tri’:
../src/eik2m1.c:101:28: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
101 | utri21_init(&utri, xhat, x, jet);
| ^
../src/eik2m1.c:115:20: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
115 | dbl22_dbl2_solve(DT0_and_DT1, utri.jet.Df, cone_coefs);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
[7/81] Compiling C object libjmm.so.p/src_eik2mp.c.o
FAILED: libjmm.so.p/src_eik2mp.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_eik2mp.c.o -MF libjmm.so.p/src_eik2mp.c.o.d -o libjmm.so.p/src_eik2mp.c.o -c ../src/eik2mp.c
../src/eik2mp.c: In function ‘tri’:
../src/eik2mp.c:97:28: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
97 | utri21_init(&utri, xhat, x, jet);
| ^
../src/eik2mp.c:112:20: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
112 | dbl22_dbl2_solve(DT0_and_DT1, utri.jet.Df, cone_coefs);
| ^~~~~~~~~~~
cc1: all warnings being treated as errors
[8/81] Compiling C object libjmm.so.p/src_eik2g1.c.o
FAILED: libjmm.so.p/src_eik2g1.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_eik2g1.c.o -MF libjmm.so.p/src_eik2g1.c.o.d -o libjmm.so.p/src_eik2g1.c.o -c ../src/eik2g1.c
../src/eik2g1.c: In function ‘tri’:
../src/eik2g1.c:102:28: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
102 | utri21_init(&utri, xhat, x, jet);
| ^
../src/eik2g1.c: In function ‘eik2g1_get_sol_info’:
../src/eik2g1.c:268:15: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
268 | dbl22_sub(eye, DT_otimes_DT, jet_tau[i].D2f);
| ^~~
../src/eik2g1.c:268:20: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
268 | dbl22_sub(eye, DT_otimes_DT, jet_tau[i].D2f);
| ^~~~~~~~~~~~
../src/eik2g1.c:274:32: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
274 | utri21_init(&utri_tau, xhat, x, jet_tau);
| ^
../src/eik2g1.c:282:13: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
282 | dbl22_sub(eye, Dtau_otimes_Dtau, D2tau);
| ^~~
../src/eik2g1.c:282:18: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
282 | dbl22_sub(eye, Dtau_otimes_Dtau, D2tau);
| ^~~~~~~~~~~~~~~~
../src/eik2g1.c:285:28: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
285 | dbl numer = dbl2_wnormsq(D2tau, x[0]);
| ^~~~~
../src/eik2g1.c:286:28: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
286 | dbl denom = dbl2_wnormsq(D2tau, dx);
| ^~~~~
../src/eik2g1.c:305:30: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
305 | utri21_init(&utri_T, xhat, x, jet_T);
| ^
../src/eik2g1.c:329:39: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
329 | bb31_init_from_jet21t(&bb_E, jet_E, x);
| ^
cc1: all warnings being treated as errors
[9/81] Compiling C object libjmm.so.p/src_bb.c.o
FAILED: libjmm.so.p/src_bb.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_bb.c.o -MF libjmm.so.p/src_bb.c.o.d -o libjmm.so.p/src_bb.c.o -c ../src/bb.c
../src/bb.c: In function ‘bb33_init_from_cell_and_jets’:
../src/bb.c:569:30: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
569 | bb33_init_from_jets(bb, J, x);
| ^
cc1: all warnings being treated as errors
[10/81] Compiling C object libjmm.so.p/src_eik.c.o
FAILED: libjmm.so.p/src_eik.c.o
cc -Ilibjmm.so.p -I. -I.. -I../include -Isubprojects/tetgen -I../subprojects/tetgen -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu99 -O3 -fPIC -MD -MQ libjmm.so.p/src_eik.c.o -MF libjmm.so.p/src_eik.c.o.d -o libjmm.so.p/src_eik.c.o -c ../src/eik.c
../src/eik.c: In function ‘tri’:
../src/eik.c:515:33: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
515 | F4_bfgs_step(xk, gk, Hk, xk1, gk1, Hk1, &context)) {
| ^~
../src/eik.c:550:18: error: pointers to arrays with different qualifiers are incompatible in ISO C [-Werror=pedantic]
550 | dbl22_copy(Hk1, Hk);
| ^~~
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.
64-bit Windows system but running it on Windows subsystem for Linux. g++ version 9.3.0
I tried running your bertsekas.py
but I hit meshio._exceptions.ReadError: File sphere.vtu not found.
Seems I am missing that data file. Where can I get it?
I'm on branch dial-test
. Was able to to successfully install dependencies and compile the C library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.