Esempio n. 1
0
def create_gen_kw():
    parameter_file = "MULTFLT.txt"
    template_file = "MULTFLT.tmpl"
    with open(parameter_file, "w") as f:
        f.write("MULTFLT1  NORMAL  0   1\n")
        f.write("MULTFLT2  RAW \n")
        f.write("MULTFLT3  NORMAL  0   1\n")

    with open(template_file, "w") as f:
        f.write("<MULTFLT1> <MULTFLT2> <MULTFLT3>\n")
        f.write("/\n")

    gen_kw_config = GenKwConfig("MULTFLT", template_file, parameter_file)
    gen_kw = GenKw(gen_kw_config)

    return (gen_kw_config, gen_kw)
Esempio n. 2
0
 def getKeywordModelConfig(self):
     """ @rtype: GenKWConfig """
     return GenKwConfig.createCReference(EnkfConfigNode.cNamespace().get_ref(self), parent=self)
Esempio n. 3
0
 def getKeywordModelConfig(self):
     """ @rtype: GenKWConfig """
     return GenKwConfig.createCReference(
         EnkfConfigNode.cNamespace().get_ref(self), parent=self)
Esempio n. 4
0
 def getKeywordModelConfig(self):
     """ @rtype: GenKWConfig """
     return GenKwConfig.createCReference(self._get_ref(), parent=self)