reverted some code change, after observing properly.

这个提交包含在:
Sai-Suraj-27
2023-08-03 23:06:09 +05:30
父节点 72cc38b9c6
当前提交 ad8d69bd10

查看文件

@@ -331,6 +331,10 @@ class SimulationConfig:
"C_float_or_double": "float",
"C_complex": None,
}
if self.general["solver"] == "cuda":
self.dtypes["C_complex"] = "pycuda::complex<float>"
elif self.general["solver"] == "opencl":
self.dtypes["C_complex"] = "cfloat"
elif self.general["precision"] == "double":
self.dtypes = {
@@ -341,11 +345,10 @@ class SimulationConfig:
"C_float_or_double": "double",
"C_complex": None,
}
if self.general["solver"] == "cuda":
self.dtypes["C_complex"] = "pycuda::complex<double>"
elif self.general["solver"] == "opencl":
self.dtypes["C_complex"] = "cdouble"
if self.general["solver"] == "cuda":
self.dtypes["C_complex"] = "pycuda::complex<double>"
elif self.general["solver"] == "opencl":
self.dtypes["C_complex"] = "cdouble"
def _set_model_start_end(self):
"""Sets range for number of models to run (internally 0 index)."""