slimgroup / JUDI.jl

Julia Devito inversion.
https://slimgroup.github.io/JUDI.jl
MIT License
96 stars 29 forks source link

ERROR: UndefVarError: SLIM_optim not defined #174

Closed zhangxiaoshuotttt closed 1 year ago

zhangxiaoshuotttt commented 1 year ago

I have checked the issue "JUDI.SLIM_optim #6".I tried to do it according to that issue, but it doesn"t seem to work.Here is what I did.

System : Ubuntu 22.04 Julia version : Julia1.6.7 Devito version : 4.8.0 conda activate FWI (The environment FWI has a Devito, its version is 4.8.0) `ENV["PYTHON"]="/home/master/anaconda3/envs/FWI/bin/python" $ JULIA pkg.add("JUDI") I also triedPkg.add(PackageSpec(url="https://github.com/slimgroup/JUDI.jl")) using JUDI(No error) using JUDI.SLIM_optim ` then

ERROR: 
UndefVarError: SLIM_optim not defined

Meanwghile,I try to run "Setup.sh",but it gives me an error saying I don't have "docker/devito_requirements.txt"

This problem has bothered me for four days. I tried to find a solution,but since I just learned Julia, I couldn't find the problem .Please help me.

ziyiyin97 commented 1 year ago

Hi, thanks for your interest in JUDI package. We've restructured the package a while ago (see #43 ) and SLIM_optim module is currently under https://github.com/slimgroup/SlimOptim.jl. We suggest you install that package and do using SlimOptim instead.

ziyiyin97 commented 1 year ago

I've checked the Setup.sh file. It seems to be deprecated @mloubout correct me if wrong

zhangxiaoshuotttt commented 1 year ago

Thank you for your help. Thank you for your efforts.

mloubout commented 1 year ago

You can check the example scripts such as :

https://github.com/slimgroup/JUDI.jl/blob/master/examples/scripts/fwi_example_minConf.jl

for usage

zhangxiaoshuotttt commented 1 year ago
  • setup.sh is deprecated and only kept for legacy. for early versions of JUDI
  • SLIM_optim has been deprecated and is now its own package SlimOptim.jl

You can check the example scripts such as :

https://github.com/slimgroup/JUDI.jl/blob/master/examples/scripts/fwi_example_minConf.jl

for usage

Ok, I'll check. Thanks a lot.