I have been working on a completely new implementation of qcc for the
past few months, but haven't had the time to release it yet.
It should be much more robust/clever that the current implementation and
will avoid this issue and other similar issues.
I will try to release it soon.
cheers,
Stephane
On 6/9/22 11:54,
j.a.v...@gmail.com wrote:
> Hallo Alex,
>
> > What's happening ?
>
> To verify there are no missing `reduction` clauses, qcc
> implements a check on `n` and examines if it is modified in the
> foreach loop. However, this check, -involving a `!=`
> comparison-, only works for int, double, etc but is not
> applicable to structures like `coord`s.
>
> Antoon
> Op woensdag 8 juni 2022 om 18:27:27 UTC+2 schreef
limarea...@gmail.com:
>
> Hello everyone,
>
> I'm coming back to my sandbox and did some updates. I have an issue
> probably linked to what Jose has described. I did a small debug case:
>
> double geometry(coord size){
> return size.x;
> }
>
> int main(){
> init_grid (64);
> vertex scalar a[];
> coord size = {0.1 , 0.1};
> foreach_vertex(){
> // a[] = geometry(size); // <-- compilation error
> a[] = size.x; // not what I want to do
> }
> }
>
> The function /geometry/ can be called if *size* is of type /double/
> but not /coord/.
> If I uncomment my line, I get:
> /"debug.c:13:18: error: invalid operands to binary != (have ‘coord’
> and ‘coord’)"/
> --
> 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
> <mailto:
basilisk-fr...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/basilisk-fr/02ef95dc-f0ef-4877-827d-dd05ea90a5f4n%40googlegroups.com
> <
https://groups.google.com/d/msgid/basilisk-fr/02ef95dc-f0ef-4877-827d-dd05ea90a5f4n%40googlegroups.com?utm_medium=email&utm_source=footer>.