JuliaIBPM / ViscousFlow.jl

A framework for simulating viscous incompressible flows about arbitrary body shapes.
https://JuliaIBPM.github.io/ViscousFlow.jl/latest
Other
100 stars 28 forks source link

Converting ScalarData array to normal array into IterativeSolvers routines #4

Closed ruizhi92 closed 5 years ago

ruizhi92 commented 6 years ago

When calling IterativeSolvers.cg! in SaddlePointSystems.jl, the following error is showing:

MethodError: Cannot convert an object of type Array{Float64,1} to an object of type Whirl.Fields.ScalarData{128} This may have arisen from a call to the constructor Whirl.Fields.ScalarData{128}(...), since type constructors fall back to convert methods.

Seems that the auto data type converting is not working here somehow.