Oystein Lande's simple wave flume code

211 views
Skip to first unread message

Emily Lane

unread,
Jul 11, 2025, 5:09:09 AM7/11/25
to basilisk-fr
Hi,
I am trying to run Oystein Lande's simple wave flume code from his sandbox (http://basilisk.fr/sandbox/oystelan/waveflume_example/simple_waveflume.c). 

Firstly - is there somewhere I can read up about the usage of [] in declarations for dimensions? I am getting some errors because of these and I think this is a change since I previously used basilisk. E.g.
/opt/nesi/zen3/Basilisk/20250612-gompi-2023a/utils.h:8: error: the dimensional constraints below are not compatible
023a/utils.h:8: '1e30f [0,1]'
        └─ [023a/utils.h:8: 'DT = 1e30f [0,1]'] = [0,1]
023a/poisson.h:441: 'if (tolerance)
    TOLERANCE = tolerance;'
        └─ [023a/utils.h:8: 'DT = 1e30f [0,1]'] = [0]

Note - I could get rid of this error by changing line 8 in util.h from 
double DT = HUGE [0,1], CFL = 0.5 [0];
to
double DT = HUGE [0], CFL = 0.5 [0];
but I don't know enough about what it is doing to know if this is going to break something else

I am also getting the following errors from the waveprobe.h code:

[laneem@login01 src]$ qcc simple_waveflume.c -o simple_waveflume.exe -lm -L. -ldl -lstdc++ -Wall -O2 -lgfortran 
./adapt_wavelet_leave_interface.h:20: warning: obsolete optional/named arguments syntax
./waveprobes.h: In function ‘wprobe’:
./waveprobes.h:48:35: error: ‘y’ undeclared (first use in this function); did you mean ‘yi’?
./waveprobes.h:48:35: note: each undeclared identifier is reported only once for each function it appears in
./waveprobes.h:48:62: error: ‘Delta’ undeclared (first use in this function)
 
Has anyone else tried using this code recently? Does anyone have any suggestions as to what these problems are? It has been a few years since I have used basilisk much and so I am rather rusty and there are definitely some changes in the code since then.

Thanks for you help.
Emily

Vinod Thale

unread,
Jul 11, 2025, 5:42:16 AM7/11/25
to Emily Lane, basilisk-fr
Hi Emily,

I have attached a file that i am able to compile successfully with little modification. 

Best regards,
Vinod 

--
You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/basilisk-fr/66e782c4-cf4b-4d63-966c-81c7ce028ec7n%40googlegroups.com.
adapt_wavelet_leave_interface.h
output_vtu_foreach.h
simpleBa.c
Bview.sh
simpleBa
waveprobe0.dat
waveprobes.h
Screenshot 2025-07-11 150927.png

Stephane Popinet

unread,
Jul 11, 2025, 6:42:06 AM7/11/25
to basil...@googlegroups.com
> Firstly - is there somewhere I can read up about the usage of [] in
> declarations for dimensions?

Front Page -> More documentation -> Getting started / Dimensional
analysis tutorial

http://basilisk.fr/Tutorial.dimensions


Reply all
Reply to author
Forward
0 new messages