diff --git a/docs/source/plugins/99_1_solver_api_reference.rst b/docs/source/plugins/99_1_solver_api_reference.rst index 9c553b2d..203ffb48 100644 --- a/docs/source/plugins/99_1_solver_api_reference.rst +++ b/docs/source/plugins/99_1_solver_api_reference.rst @@ -163,9 +163,9 @@ ALFAsim's Solver Data .. doxygenfunction:: get_flow_pattern -.. doxygenfunction:: set_warning_message +.. doxygenfunction:: log_warning_message -.. doxygenfunction:: set_information_message +.. doxygenfunction:: log_information_message diff --git a/src/alfasim_sdk/alfasim_sdk_api/api.h b/src/alfasim_sdk/alfasim_sdk_api/api.h index 13ec7dd5..22ae761f 100644 --- a/src/alfasim_sdk/alfasim_sdk_api/api.h +++ b/src/alfasim_sdk/alfasim_sdk_api/api.h @@ -627,7 +627,7 @@ DLL_EXPORT int get_deposition_thickness( @param[in] warning_message Warning Message. @return An #error_code value. */ -DLL_EXPORT int set_warning_message(const char* warning_message); +DLL_EXPORT int log_warning_message(const char* warning_message); /*! Sets an information message at the solver logger. @@ -636,7 +636,7 @@ DLL_EXPORT int set_warning_message(const char* warning_message); @param[in] info_message Information Message. @return An #error_code value. */ -DLL_EXPORT int set_information_message(const char* info_message); +DLL_EXPORT int log_information_message(const char* info_message); /*! Retrieves the tracer ID given a tracer reference. A tracer reference may be obtained from the diff --git a/src/alfasim_sdk/alfasim_sdk_api/detail/api_pointers.h b/src/alfasim_sdk/alfasim_sdk_api/detail/api_pointers.h index db819e2e..e40d15d3 100644 --- a/src/alfasim_sdk/alfasim_sdk_api/detail/api_pointers.h +++ b/src/alfasim_sdk/alfasim_sdk_api/detail/api_pointers.h @@ -82,8 +82,8 @@ using get_flow_pattern_func = int (*)( int* size ); using get_deposition_thickness_func = int (*)(void* ctx, double** out, int phase_id, enum TimestepScope ts_scope, int* size); -using set_warning_message_func = int (*)(const char* warning_message); -using set_information_message_func = int (*)(const char* information_message); +using log_warning_message_func = int (*)(const char* warning_message); +using log_information_message_func = int (*)(const char* information_message); using get_tracer_id_func = int (*)(void* ctx, int* tracer_id, void* reference); using get_tracer_name_size_func = int (*)(void* ctx, int* tracer_name_size, void* reference); using get_tracer_name_func = int (*)(void* ctx, char* tracer_name, void* reference, int size); @@ -148,8 +148,8 @@ struct ALFAsimSDK_API { get_deposition_thickness_func get_deposition_thickness; - set_warning_message_func set_warning_message; - set_information_message_func set_information_message; + log_warning_message_func log_warning_message; + log_information_message_func log_information_message; get_tracer_id_func get_tracer_id; get_tracer_name_size_func get_tracer_name_size; diff --git a/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_linux.h b/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_linux.h index 1ac1602a..3fee788e 100644 --- a/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_linux.h +++ b/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_linux.h @@ -80,8 +80,8 @@ inline int alfasim_sdk_open(ALFAsimSDK_API* api) api->get_flow_pattern = (get_flow_pattern_func)dlsym(api->handle, "get_flow_pattern"); api->get_liqliq_flow_pattern = (get_flow_pattern_func)dlsym(api->handle, "get_liqliq_flow_pattern"); api->get_deposition_thickness = (get_deposition_thickness_func)dlsym(api->handle, "get_deposition_thickness"); - api->set_warning_message = (set_warning_message_func)dlsym(api->handle, "set_warning_message"); - api->set_information_message = (set_information_message_func)dlsym(api->handle, "set_information_message"); + api->log_warning_message = (log_warning_message_func)dlsym(api->handle, "log_warning_message"); + api->log_information_message = (log_information_message_func)dlsym(api->handle, "log_information_message"); api->get_plugin_input_data_table_quantity = (get_plugin_input_data_table_quantity_func)dlsym(api->handle, "get_plugin_input_data_table_quantity"); api->get_tracer_id = (get_tracer_id_func)dlsym(api->handle, "get_tracer_id"); api->get_tracer_name_size = (get_tracer_name_size_func)dlsym(api->handle, "get_tracer_name_size"); diff --git a/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_win.h b/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_win.h index 5ba693a9..021dc592 100644 --- a/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_win.h +++ b/src/alfasim_sdk/alfasim_sdk_api/detail/bootstrap_win.h @@ -104,8 +104,8 @@ inline int alfasim_sdk_open(ALFAsimSDK_API* api) api->get_flow_pattern = (get_flow_pattern_func)GetProcAddress(api->handle, "get_flow_pattern"); api->get_liqliq_flow_pattern = (get_flow_pattern_func)GetProcAddress(api->handle, "get_liqliq_flow_pattern"); api->get_deposition_thickness = (get_deposition_thickness_func)GetProcAddress(api->handle, "get_deposition_thickness"); - api->set_warning_message = (set_warning_message_func)GetProcAddress(api->handle, "set_warning_message"); - api->set_information_message = (set_information_message_func)GetProcAddress(api->handle, "set_information_message"); + api->log_warning_message = (log_warning_message_func)GetProcAddress(api->handle, "log_warning_message"); + api->log_information_message = (log_information_message_func)GetProcAddress(api->handle, "log_information_message"); api->get_plugin_input_data_table_quantity = (get_plugin_input_data_table_quantity_func)GetProcAddress(api->handle, "get_plugin_input_data_table_quantity"); api->get_tracer_id = (get_tracer_id_func)GetProcAddress(api->handle, "get_tracer_id"); api->get_tracer_name_size = (get_tracer_name_size_func)GetProcAddress(api->handle, "get_tracer_name_size");