simphony / simphony-common

The native implementation of the Simphony cuds objects
BSD 2-Clause "Simplified" License
7 stars 5 forks source link

Problem: some wrappers fail to load on Simulation import #394

Closed mehdisadeghi closed 7 years ago

mehdisadeghi commented 7 years ago

Solution: make sure engines are loaded before any other import.

This prevent cyclic imports.

stefanoborini commented 7 years ago

do you have an actual error message for this? because i don't see the potential for a cyclic import

mehdisadeghi commented 7 years ago

@stefanoborini try running nve_example in lammps without importing simphony.engine in the script, you will see the error. Actually it is bad that we implicitly load the engines, but it is a story for another day.