Skip to content

Commit

Permalink
Fixed deprecation warning for importing jax config
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdiataei committed Nov 25, 2023
1 parent ed2e634 commit 6023141
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/CFD/airfoil3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from src.boundary_conditions import *
import numpy as np
from src.utils import *
from jax.config import config
from jax import config
import os
#os.environ["XLA_FLAGS"] = '--xla_force_host_platform_device_count=8'
import jax
Expand Down
2 changes: 1 addition & 1 deletion examples/CFD/cavity2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
4. Visualization: The simulation outputs data in VTK format for visualization. It also provides images of the velocity field and saves the boundary conditions at each time step. The data can be visualized using software like Paraview.
"""
from jax.config import config
from jax import config
import numpy as np
import jax.numpy as jnp
import os
Expand Down
2 changes: 1 addition & 1 deletion examples/CFD/cavity3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import numpy as np
from src.utils import *
from jax.config import config
from jax import config
import json, codecs

from src.models import BGKSim, KBCSim
Expand Down
2 changes: 1 addition & 1 deletion examples/CFD/channel3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

from src.boundary_conditions import *
from jax.config import config
from jax import config
from src.utils import *
import numpy as np
from src.lattice import LatticeD3Q27
Expand Down
2 changes: 1 addition & 1 deletion examples/CFD/couette2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import jax.numpy as jnp
import numpy as np
from src.utils import *
from jax.config import config
from jax import config


from src.models import BGKSim
Expand Down
2 changes: 1 addition & 1 deletion examples/CFD/cylinder2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import json
import jax
from time import time
from jax.config import config
from jax import config
import numpy as np
import jax.numpy as jnp

Expand Down
2 changes: 1 addition & 1 deletion examples/CFD/oscilating_cylinder2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import os
import jax
from time import time
from jax.config import config
from jax import config
import numpy as np
import jax.numpy as jnp

Expand Down
2 changes: 1 addition & 1 deletion examples/CFD/windtunnel3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from time import time
import numpy as np
import jax.numpy as jnp
from jax.config import config
from jax import config

from src.utils import *
from src.models import BGKSim, KBCSim
Expand Down
2 changes: 1 addition & 1 deletion examples/performance/MLUPS2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import argparse
import jax.numpy as jnp
import numpy as np
from jax.config import config
from jax import config
from time import time

from src.utils import *
Expand Down
2 changes: 1 addition & 1 deletion examples/performance/MLUPS3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import jax
import jax.numpy as jnp
import numpy as np
from jax.config import config
from jax import config
from time import time
#config.update('jax_disable_jit', True)
# Use 8 CPU devices
Expand Down
2 changes: 1 addition & 1 deletion examples/performance/MLUPS3d_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import jax.numpy as jnp
import numpy as np

from jax.config import config
from jax import config

from src.boundary_conditions import *
from src.models import BGKSim
Expand Down

0 comments on commit 6023141

Please sign in to comment.