Skip to content
Snippets Groups Projects
Commit b2712453 authored by Philipp Arras's avatar Philipp Arras
Browse files

Adopt to new nifty version

parent 846e8899
No related branches found
No related tags found
1 merge request!32Adopt to new nifty version
Pipeline #113815 passed
......@@ -5,6 +5,7 @@
from functools import reduce
from operator import add
from types import GeneratorType
from mpi4py import MPI
import numpy as np
......@@ -128,5 +129,5 @@ def test_mpi_adder():
mini_results = []
for ham in hams_for_sampling:
with ift.random.Context(42):
mini_results.append(mini(ift.SampledKLEnergy(pos, ham, 3, None))[0].position)
mini_results.append(mini(ift.SampledKLEnergy(pos, ham, 3, None, comm=MPI.COMM_SELF))[0].position)
allclose(mini_results)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment