Skip to content
Snippets Groups Projects
Commit c03123cd authored by 数学の武士's avatar 数学の武士
Browse files

Language function rename

parent cb58a245
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
extern "C" { extern "C" {
#endif #endif
void esm_compute_flux_cxx(struct sfxDataVecTypeC* sfx, void cxx_esm_compute_flux(struct sfxDataVecTypeC* sfx,
struct meteoDataVecTypeC* meteo, struct meteoDataVecTypeC* meteo,
const struct sfx_esm_param_C* model_param, const struct sfx_esm_param_C* model_param,
const struct sfx_surface_param* surface_param, const struct sfx_surface_param* surface_param,
...@@ -13,7 +13,7 @@ extern "C" { ...@@ -13,7 +13,7 @@ extern "C" {
const struct sfx_phys_constants* constants, const struct sfx_phys_constants* constants,
const int grid_size); const int grid_size);
void sheba_compute_flux_cxx(struct sfxDataVecTypeC* sfx, void cxx_sheba_compute_flux(struct sfxDataVecTypeC* sfx,
struct meteoDataVecTypeC* meteo, struct meteoDataVecTypeC* meteo,
const struct sfx_sheba_param_C* model_param, const struct sfx_sheba_param_C* model_param,
const struct sfx_surface_param* surface_param, const struct sfx_surface_param* surface_param,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// #include "../includeC/sfx_call_cxx.h" // #include "../includeC/sfx_call_cxx.h"
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
void esm_compute_flux_c (struct sfxDataVecTypeC* sfx, void c_esm_compute_flux (struct sfxDataVecTypeC* sfx,
struct meteoDataVecTypeC* meteo, struct meteoDataVecTypeC* meteo,
const struct sfx_esm_param_C* model_param, const struct sfx_esm_param_C* model_param,
const struct sfx_surface_param* surface_param, const struct sfx_surface_param* surface_param,
...@@ -12,10 +12,10 @@ void esm_compute_flux_c (struct sfxDataVecTypeC* sfx, ...@@ -12,10 +12,10 @@ void esm_compute_flux_c (struct sfxDataVecTypeC* sfx,
const struct sfx_phys_constants* constants, const struct sfx_phys_constants* constants,
const int *grid_size) const int *grid_size)
{ {
esm_compute_flux_cxx(sfx, meteo, model_param, surface_param, numerics, constants, *grid_size); cxx_esm_compute_flux(sfx, meteo, model_param, surface_param, numerics, constants, *grid_size);
} }
void sheba_compute_flux_c (struct sfxDataVecTypeC* sfx, void c_sheba_compute_flux (struct sfxDataVecTypeC* sfx,
struct meteoDataVecTypeC* meteo, struct meteoDataVecTypeC* meteo,
const struct sfx_sheba_param_C* model_param, const struct sfx_sheba_param_C* model_param,
const struct sfx_surface_param* surface_param, const struct sfx_surface_param* surface_param,
...@@ -23,5 +23,5 @@ void sheba_compute_flux_c (struct sfxDataVecTypeC* sfx, ...@@ -23,5 +23,5 @@ void sheba_compute_flux_c (struct sfxDataVecTypeC* sfx,
const struct sfx_phys_constants* constants, const struct sfx_phys_constants* constants,
const int *grid_size) const int *grid_size)
{ {
sheba_compute_flux_cxx(sfx, meteo, model_param, surface_param, numerics, constants, *grid_size); cxx_sheba_compute_flux(sfx, meteo, model_param, surface_param, numerics, constants, *grid_size);
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <vector> #include <vector>
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
void esm_compute_flux_cxx (sfxDataVecTypeC* sfx, void cxx_esm_compute_flux (sfxDataVecTypeC* sfx,
meteoDataVecTypeC* meteo, meteoDataVecTypeC* meteo,
const sfx_esm_param_C* model_param, const sfx_esm_param_C* model_param,
const sfx_surface_param* surface_param, const sfx_surface_param* surface_param,
...@@ -23,7 +23,7 @@ void esm_compute_flux_cxx (sfxDataVecTypeC* sfx, ...@@ -23,7 +23,7 @@ void esm_compute_flux_cxx (sfxDataVecTypeC* sfx,
#endif #endif
} }
void sheba_compute_flux_cxx (sfxDataVecTypeC* sfx, void cxx_sheba_compute_flux (sfxDataVecTypeC* sfx,
meteoDataVecTypeC* meteo, meteoDataVecTypeC* meteo,
const sfx_sheba_param_C* model_param, const sfx_sheba_param_C* model_param,
const sfx_surface_param* surface_param, const sfx_surface_param* surface_param,
......
...@@ -56,8 +56,8 @@ module sfx_esm ...@@ -56,8 +56,8 @@ module sfx_esm
end type end type
INTERFACE INTERFACE
SUBROUTINE esm_compute_flux_f(sfx, meteo, model_param, surface_param, numerics, constants, grid_size) BIND(C, & SUBROUTINE c_esm_compute_flux(sfx, meteo, model_param, surface_param, numerics, constants, grid_size) BIND(C, &
name="esm_compute_flux_c") name="c_esm_compute_flux")
use sfx_data use sfx_data
use, intrinsic :: ISO_C_BINDING, ONLY: C_INT, C_PTR use, intrinsic :: ISO_C_BINDING, ONLY: C_INT, C_PTR
Import :: sfx_esm_param_C, sfx_esm_numericsType_C Import :: sfx_esm_param_C, sfx_esm_numericsType_C
...@@ -69,7 +69,7 @@ module sfx_esm ...@@ -69,7 +69,7 @@ module sfx_esm
type(sfx_surface_param) :: surface_param type(sfx_surface_param) :: surface_param
type(sfx_esm_numericsType_C) :: numerics type(sfx_esm_numericsType_C) :: numerics
type(sfx_phys_constants) :: constants type(sfx_phys_constants) :: constants
END SUBROUTINE esm_compute_flux_f END SUBROUTINE c_esm_compute_flux
END INTERFACE END INTERFACE
#endif #endif
...@@ -131,7 +131,7 @@ contains ...@@ -131,7 +131,7 @@ contains
meteo_c_ptr = C_LOC(meteo_c) meteo_c_ptr = C_LOC(meteo_c)
sfx_c_ptr = C_LOC(sfx_c) sfx_c_ptr = C_LOC(sfx_c)
call esm_compute_flux_f(sfx_c_ptr, meteo_c_ptr, model_param, surface_param, numerics_c, phys_constants, n) call c_esm_compute_flux(sfx_c_ptr, meteo_c_ptr, model_param, surface_param, numerics_c, phys_constants, n)
#else #else
do i = 1, n do i = 1, n
#ifdef SFX_FORCE_DEPRECATED_ESM_CODE #ifdef SFX_FORCE_DEPRECATED_ESM_CODE
......
...@@ -55,8 +55,8 @@ module sfx_sheba ...@@ -55,8 +55,8 @@ module sfx_sheba
end type end type
INTERFACE INTERFACE
SUBROUTINE sheba_compute_flux_f(sfx, meteo, model_param, surface_param, numerics, constants, grid_size) BIND(C, & SUBROUTINE c_sheba_compute_flux(sfx, meteo, model_param, surface_param, numerics, constants, grid_size) BIND(C, &
name="sheba_compute_flux_c") name="c_sheba_compute_flux")
use sfx_data use sfx_data
use, intrinsic :: ISO_C_BINDING, ONLY: C_INT, C_PTR use, intrinsic :: ISO_C_BINDING, ONLY: C_INT, C_PTR
Import :: sfx_sheba_param_C, sfx_sheba_numericsType_C Import :: sfx_sheba_param_C, sfx_sheba_numericsType_C
...@@ -68,7 +68,7 @@ module sfx_sheba ...@@ -68,7 +68,7 @@ module sfx_sheba
type(sfx_surface_param) :: surface_param type(sfx_surface_param) :: surface_param
type(sfx_sheba_numericsType_C) :: numerics type(sfx_sheba_numericsType_C) :: numerics
type(sfx_phys_constants) :: constants type(sfx_phys_constants) :: constants
END SUBROUTINE sheba_compute_flux_f END SUBROUTINE c_sheba_compute_flux
END INTERFACE END INTERFACE
#endif #endif
...@@ -130,7 +130,7 @@ contains ...@@ -130,7 +130,7 @@ contains
meteo_c_ptr = C_LOC(meteo_c) meteo_c_ptr = C_LOC(meteo_c)
sfx_c_ptr = C_LOC(sfx_c) sfx_c_ptr = C_LOC(sfx_c)
call sheba_compute_flux_f(sfx_c_ptr, meteo_c_ptr, model_param, surface_param, numerics_c, phys_constants, n) call c_sheba_compute_flux(sfx_c_ptr, meteo_c_ptr, model_param, surface_param, numerics_c, phys_constants, n)
#else #else
do i = 1, n do i = 1, n
meteo_cell = meteoDataType(& meteo_cell = meteoDataType(&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment