We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a72c034 + 2478f4c commit 0dd52c4Copy full SHA for 0dd52c4
tests/test_parallel.py
@@ -0,0 +1,13 @@
1
+"""Verify all examples can be accessed or downloaded"""
2
+import pytest
3
+
4
+from ansys.dpf import core as dpf
5
6
+def test_num_threads():
7
+ op = dpf.operators.averaging.elemental_nodal_to_nodal_fc()
8
+ c = op.config
9
+ nOrg = c.get_num_threads_option()
10
+ assert nOrg == '0' # defaults to 0
11
+ c.set_num_threads_option(5)
12
+ op.config = c
13
+ assert op.config.get_num_threads_option() == '5'
0 commit comments