Skip to content

Commit 5b599d1

Browse files
committedFeb 6, 2023
FIX: fixed compilations with libtorch tests and muq tests
1 parent f1edc27 commit 5b599d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎tutorials/UQ/02enKF_1DinverseHeatTransfer/02enKF_1DinverseHeatTransfer.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class EnKF_1DinverseHeatTransfer: public laplacianProblem
358358
}
359359
else
360360
{
361-
T = Tensemble.set(i, nullptr);
361+
T = Tensemble.set(i, nullptr)();
362362
}
363363

364364
resetRunTime(startTime_, startIndex_, endTime_);

‎unitTests/libTorch/Make/options

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ EXE_LIBS = \
3636
-L$(FOAM_USER_LIBBIN) \
3737
-lITHACA_TORCH \
3838
-Wl,-rpath,$(TORCH_LIBRARIES)/lib $(TORCH_LIBRARIES)/lib/libtorch.so $(TORCH_LIBRARIES)/lib/libc10.so \
39-
-Wl,--no-as-needed,$(TORCH_LIBRARIES)/lib/libcaffe2_detectron_ops.so \
39+
-Wl,--no-as-needed,$(TORCH_LIBRARIES)/lib/libtorch_cpu.so \
4040
-Wl,--as-needed $(TORCH_LIBRARIES)/lib/libc10.so \
41+
-Wl,--no-as-needed,$(TORCH_LIBRARIES)/lib/libtorch.so
4142

0 commit comments

Comments
 (0)