Skip to content

Commit

Permalink
Fix run.py for issue235
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Nov 26, 2024
1 parent 580a0be commit f5eb87a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions examples/issue235_allocatable_classes/run.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
#!/usr/bin/env python
import itest

REF = 1.0
REF = 3.1415
TOL = 1.0e-14

obj = itest.myclass_factory.create_myclass("impl")
obj = itest.myclass_factory.myclass_create(REF)

output = obj.get_value()
output = obj.get_val()
assert(abs(output-REF)<TOL)
print(f"OK: {output} == {REF}")

# obj2 = itest.myclass_factory.create_myclass("impl")
# output2 = obj2.get_value()
# assert(abs(output-REF)<TOL)
# print(f"OK: {output2} == {REF}")

0 comments on commit f5eb87a

Please sign in to comment.