Exemple #1
0
        reader_init.read_functions_header()  # Read *_functions.h
        reader_init.read_functions_c_file()  # Read *_functions.c
        reader_init.read_literals_h_file()  # Read *_literals.h
        reader_init.remove_fictitious_fequation()

    #################################
    # Builders
    #################################

    # Builder for the init pb
    builder_init_pb = None
    if init_pb:
        builder_init_pb = Factory(reader_init)

        builder_init_pb.build_variables()
        builder_init_pb.build_equations()
        builder_init_pb.build_modes()
        builder_init_pb.build_warnings()
        builder_init_pb.build_call_functions()
        builder_init_pb.prepare_for_print()

    #################################
    # Writers
    #################################

    # -------------------------------------------------------
    # Generation of the file related to the initialization model
    # -------------------------------------------------------

    writer_init_pb = None  # The file writer binds to the initialization template