Skip to content

Question about vector<Vec3> in swig interface file #21

Open
@ajsilveira

Description

@ajsilveira

I am planning to write a new force that uses the RMSD between molecules and I will use the OpenMM RMSDForce as a base.
The first thing I did was to include in the plugin the OpenMM RMSDForce, which I named MyRMSDForce for now.
I am getting the following error when creating MyRMSDForce:

File "/home/silveira/miniconda3/lib/python3.6/site-packages/exampleplugin.py", line 394, in __init__
_exampleplugin.MyRMSDForce_swiginit(self, _exampleplugin.new_MyRMSDForce(*args))
TypeError: Wrong number or type of arguments for overloaded function 'new_MyRMSDForce'.
Possible C/C++ prototypes are:
ExamplePlugin::MyRMSDForce::MyRMSDForce(std::vector< OpenMM::Vec3,std::allocator< OpenMM::Vec3 > > const &,std::vector< int,std::allocator< int > > const &)
ExamplePlugin::MyRMSDForce::MyRMSDForce(std::vector< OpenMM::Vec3,std::allocator< OpenMM::Vec3 > > const &)

I think that the issue is related to the swig interface file
Should I add something in exampleplugin.i to handle <vector>Vec3? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions