diff --git a/modules/map/src/mapapi.c b/modules/map/src/mapapi.c index 2dbc4fde7e..29ac4d3d99 100644 --- a/modules/map/src/mapapi.c +++ b/modules/map/src/mapapi.c @@ -31,6 +31,7 @@ #include "numeric.h" #include "jacobian.h" #include "residual.h" +#include MAP_EXTERNCALL void map_initialize_msqs_base(MAP_InputType_t* u_type, @@ -1161,6 +1162,12 @@ MAP_EXTERNCALL void map_set_gravity(MAP_ParameterType_t* p_type, const double gr p_type->g = gravity; }; +MAP_EXTERNCALL void map_set_input_text(MAP_InitInputType_t* init_type, const char* input_txt_line) +{ + strncpy(init_type->library_input_str, input_txt_line, 254); + init_type->library_input_str[254] = '\0'; +} + MAP_EXTERNCALL void map_add_cable_library_input_text(MAP_InitInputType_t* init_type) { diff --git a/modules/map/src/mapapi.h b/modules/map/src/mapapi.h index 18e62fa69e..179ce5d0df 100644 --- a/modules/map/src/mapapi.h +++ b/modules/map/src/mapapi.h @@ -64,6 +64,7 @@ MAP_EXTERNCALL void map_initialize_msqs_base(MAP_Input_t u_type, MAP_Parameter_t MAP_EXTERNCALL void set_init_to_null(MAP_InitInput_t init_type, char* map_msg, MAP_ERROR_CODE* ierr); +MAP_EXTERNCALL void map_set_input_text(MAP_InitInput_t init_type, const char* input_txt_line); MAP_EXTERNCALL void map_add_cable_library_input_text(MAP_InitInput_t init_type); MAP_EXTERNCALL void map_add_node_input_text(MAP_InitInput_t init_type); MAP_EXTERNCALL void map_add_line_input_text(MAP_InitInput_t init_type);