stray / errors while compiling code in basilisk

111 views
Skip to first unread message

f201...@hyderabad.bits-pilani.ac.in

unread,
Jul 23, 2018, 10:20:08 AM7/23/18
to basilisk-fr
Hi, i am new to basilisk and this may be a trivial error but i tries compiling the code

src/two-phase.h -> rising bubble in a box and am getting the errors bubble.c: In function ‘main’:
bubble.c:46:3: error: stray ‘\317’ in program
   f.σ = 1./Bo;
   ^
bubble.c:46:3: error: stray ‘\203’ in program
bubble.c:46:8: error: expected identifier before ‘=’ token
   f.σ = 1./Bo;  

Which i think refers to the usage of the greek alphabets in the code itself. Any help regarding how to rectify thus would be appreciated.

kyle

unread,
Jul 23, 2018, 10:26:42 AM7/23/18
to basilisk-fr
Hi,

change to f.sigma, also for rho, mu etc.

kyle

在 2018年7月23日星期一 UTC+2下午4:20:08,f201...@hyderabad.bits-pilani.ac.in写道:

Wojciech Aniszewski

unread,
Jul 23, 2018, 11:49:37 AM7/23/18
to f201...@hyderabad.bits-pilani.ac.in, basilisk-fr
That's because you probably copy-pasted the source code from your web browser and tried to compile that.
Basilisk.fr has a 'beautify' function that displays Greek letters inline, but that doesn't mean qcc will:)
So, either do as Kyle said, or use the 'raw page source' button visible in the website and wget to download that page.
This will compile no problem.

best
w

On Mon, Jul 23, 2018 at 07:20:08AM -0700, f201...@hyderabad.bits-pilani.ac.in wrote:
> Hi, i am new to basilisk and this may be a trivial error but i tries
> compiling the code
> src/two-phase.h <http://basilisk.fr/src/two-phase.h> -> rising bubble in a
> box and am getting the errors bubble.c: In function ‘main’:
> bubble.c:46:3: error: stray ‘\317’ in program
> f.σ = 1./Bo;
> ^
> bubble.c:46:3: error: stray ‘\203’ in program
> bubble.c:46:8: error: expected identifier before ‘=’ token
> f.σ = 1./Bo;
> *Which i think refers to the usage of the greek alphabets in the code
> itself. Any help regarding how to rectify thus would be appreciated.*
>
> --
> 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 post to this group, send email to basil...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/basilisk-fr/9f6e772f-a06c-497c-b71e-2434ab2cf7e5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
/^..^\ Wojciech (Wojtek) ANISZEWSKI ► Post-doctoral Researcher
( (••) ) [Fr: vôitek anichévsky] ► Sorbonne University
(|)_._(|)~ [Eng: voyteck aanishevsky] ► Institut ∂'Alembert
GPG key ► Web [English] https://tinyurl.com/y73t4xsg [2015]
ID:AC66485E ► [Polish ] https://tinyurl.com/yckark7n [2014]
signature.asc
Reply all
Reply to author
Forward
0 new messages