Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_dict not defined for ACE_VectorOfNumber #7

Open
CheukHinHoJerry opened this issue Sep 15, 2023 · 0 comments
Open

read_dict not defined for ACE_VectorOfNumber #7

CheukHinHoJerry opened this issue Sep 15, 2023 · 0 comments

Comments

@CheukHinHoJerry
Copy link

CheukHinHoJerry commented Sep 15, 2023

When reading some models generated from old code I have to explicitly import the following function and extend read_dict:

function ACEbase.FIO.read_dict(::Val{:ACE_VectorOfNumber}, D::Dict)
   T = read_dict(D["T"])
   A = T.(D["real"])
   if T <: Complex
      A[:] .+= im .* D["imag"]
   end
   return A
end

Maybe a warning should be prompted together with this work around for people who do not aware this or is it a problem from my end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant