layered vertex scalar

23 views
Skip to first unread message

Bruno Deremble

unread,
Nov 25, 2025, 5:53:20 AM (3 days ago) Nov 25
to 'Stephane Popinet' via basilisk-fr
Hello,

I am trying to update an old code where I had such declaration

vertex scalar q;
q = new vertex scalar[nl];


Which used to work but I now get a compilation error: I get

error: implicit declaration of function ‘new_block_vertex_scalar’; did you mean ‘new_vertex_scalar’? [-Wimplicit-function-declaration]


Indeed, when looking at cartesian-common, I do not find the equivalent of
`new_block_scalar` for a vertex field


I tried to add this function as a quasi-duplicate of new_block_scalar

scalar new_block_vertex_scalar (const char * name, const char * ext, int block)
{
scalar s = alloc_block_scalar (name, ext, block), sb;
int n = 0;
for (sb.i = s.i, n = 0; n < block; n++, sb.i++)
init_vertex_scalar (sb, NULL);
return s;
}


but got into more troubles.


Has anyone tried to use layered vertex scalar recently? The syntax to declare
such fields may have changed?

Thank you
Bruno
Reply all
Reply to author
Forward
0 new messages