# Source code for openmdao.test_suite.components.options_feature_vector

"""
A component that multiplies a vector by 2, where the
size of the vector is given as an option of type 'int'.
"""
import numpy as np

import openmdao.api as om

[docs]class VectorDoublingComp(om.ExplicitComponent):

[docs]    def initialize(self):
self.options.declare('size', types=int)

[docs]    def setup(self):
size = self.options['size']