common.h header file

1,102 views
Skip to first unread message

daniel.vas...@gmail.com

unread,
Mar 18, 2021, 12:26:09 PM3/18/21
to basilisk-fr
Hello everyone. I am relatively "new" to Basilisk, and I am starting to go through the source code. I have my code derived from the atomisation of a liquid pulse jet (my case is the droplet impact onto a liquid film), which is annexed to this message. I am curious because I am currently making a file with all the header files for further study of the code, and I noticed the common.h file, which contains pretty much all the base headers and functions. However, I am trying to find where, in my case, the common.h header is called, or if it is not. I have tried some functions present there (such as sq()) and it works, which would imply that the header is being called, unless a different header is at use.
Any chance other header is calling these base functions?
Thank you very much,
Daniel Vasconcelos Rodrigues.
dropletImpact_2D.c

Stephane Popinet

unread,
Mar 19, 2021, 4:09:18 AM3/19/21
to basil...@googlegroups.com
Hi Daniel,

The common.h header is included automatically by qcc, which is why you
don't see it explicitly appearing in the source codes.

You seem to be going through the source code from "the bottom up" i.e.
starting with the "deepest" layers of Basilisk. I don't advise this, as
the deeper the layer, the more complex it is.

You should rather start from the source code of the example you are
interested in and look at all the header files which are included there.
Once you have done this, you can then look at the header files which are
included in this first layer of headers (i.e. one level deeper) and so
on. This "breadth-first" or "top-down" traversal should be much easier.

Also note that anything in grid/ is more complex and should be left for
later.

cheers,

Stephane

j.a.v...@gmail.com

unread,
Mar 19, 2021, 5:04:32 AM3/19/21
to basilisk-fr
Hallo,

On a related topic,

> start from the source code of the example you are interested in

It seems that that some of the clickable-function links
disappeared lately. I believe in the past it was be possible to
go to the source of any function in an example by clicking its
link. Now only links to linux/man and Basilisk C pages are
given. E.g. examples with output_ppm() do no longer have links
that take you to this documentation and implementation.

http://basilisk.fr/src/examples/life.c

Antoon

Op vrijdag 19 maart 2021 om 09:09:18 UTC+1 schreef Stephane Popinet:

Stephane Popinet

unread,
Mar 19, 2021, 7:52:12 AM3/19/21
to basil...@googlegroups.com
Hi Antoon,

> It seems that that some of the clickable-function links
> disappeared lately.

Yes, indeed. The bug was introduced when I released the jview interface.
It should be fixed now.

cheers,

Stephane


Reply all
Reply to author
Forward
0 new messages