j-fu / VoronoiFVM.jl

Solution of nonlinear multiphysics partial differential equation systems using the Voronoi finite volume method
MIT License
202 stars 34 forks source link

Bug(s) in src/vfvm_assemblydata.jl #103

Closed jotaraz closed 6 months ago

jotaraz commented 7 months ago

In two functions in src/vfvm_assemblydata.jl the iparam-for-loop to be moved into some other loops such that all used variables are defined.

In the first function: bug_in_assemblydata

j-fu commented 7 months ago

Well, Julia's scoping rules are different from C/C++...

This code is tested in Example430. It worked for two reasons:

... need to add a multispecies test here, so I keep this open...