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

"full" not defined in reshapeCell and reshapeInternalCell #8

Open
SA8416 opened this issue Jul 11, 2021 · 1 comment
Open

"full" not defined in reshapeCell and reshapeInternalCell #8

SA8416 opened this issue Jul 11, 2021 · 1 comment

Comments

@SA8416
Copy link

SA8416 commented Jul 11, 2021

Attempts to use reshapeCell or reshapeInternalCell result in an error of:

ERROR: LoadError: UndefVarError: full not defined
Stacktrace:
 [1] reshapeCell(m::MeshStructure, phi::CellValue)
   @ JFVM D:\Programs\Julia-1.6.1\.julia\packages\JFVM\v1vqd\src\JFVMtools.jl:330

my temporary (and quite poor) workaround to this is:

Ti = internalCells(T)
        Ti = [Ti[1,1:end]';Ti;Ti[end,1:end]']
        Ti = [Ti[1:end,1] Ti Ti[1:end,end]]
        T = createCellVariable(m,Ti)

So that I may use the cellvariable T (which is a solution from solving a PDE) in functions that are dependant on T, but return errors when operating on the ghost values of T.

I will look into a better fix & branch it later this week.

Thanks.

@simulkade
Copy link
Owner

Hi @SA8416 ,
Thanks for reporting this issue. One quick solution is to replace full, which is deprecated in Julia 1.0, with Matrix. Now it should be fixed with the new commit. Please let me know if it does not work.

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

2 participants