.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEWriteMOPACInputFile

.. oe:function:: OEWriteMOPACInputFile

   .. oe:language:: c++ java csharp

      .. oe:api::

         void OEWriteMOPACInputFile(oemolostream& ofs, OEMolBase& mol,
                                    unsigned int flavor = OEOFlavor::MOPAC::DEFAULT)

   .. oe:language:: python

      .. oe:api:: python

         OEWriteMOPACInputFile(ofs: oemolostream,
                               mol: Union[OEGraphMol,OEMol,OEQMol], flavor: int) -> None

   Writes the molecule in MOPAC input file format to the output stream 'ofs' with
   'flavor' parameter from the :oe:constns:`OEChem::OEOFlavor::MOPAC` namespace.

