Skip to content

Using PHP scripts for generating implementations

Keisuke Inoue edited this page Aug 31, 2017 · 3 revisions

Introduction

This page describes how to use the following scripts:

  • make_iriclib_singlefuncs.php
  • make_iriclib_singlefuncs_header.php
  • make_iric_ftoc.php

These files are used to generate source code of headers or sources of iriclib.

Please run these scripts after implementing cg_iRIC_xxxx_Mul() functions, in this order.

make_iriclib_singlefuncs.php

Run make_iriclib_singlefuncs.php, and paste the output to iriclib_single.c, to setup "single version" function implementations easily.

make_iriclib_singlefuncs_header.php

Run make_iriclib_singlefuncs_header.php, and paste the output to iriclib.h, to setup "single version" function definitions easily.

make_iric_ftoc.php

Run make_iric_ftoc.php, and paste the output to iric_ftoc.c, to setup FORTRAN interfaces easily. Please not that the output of make_iric_ftoc.php is not "perfect", so you have to keep the implementation of the following functions, that are implemented manually.

  • iric_check_cancel_f
  • cg_iric_read_bc_indices_mul_f
  • iric_geo_riversurvey_read_name_f
  • cg_iric_read_bc_indices_f