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

Fixed deprecation warning for importing jax config #25

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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