Menu

PMTM_create_instance

Iain Miller

PMTM_create_instance

Fortran:

:::fortran
subroutine PMTM_create_instance(instance , file_name , application_name , err_code)

Creates another instance of PMTM, which can be used to direct the output of timers into this instance rather that the default one.

:::fortran
    integer, intent(out)::instance 

The returned handle to the instance.

:::fortran
    character(len=*), intent(in)::file_name

The name of the CSV file which PMTM will output its results (‘.pmtm’ will be appended to this name and if a file already exists with this name a number will be appended to create a new file).

:::fortran
    character(len=*), intent(in)::application_name

The application name that will get logged to the output file e.g. ‘Chimaera v1.6’.

:::fortran
    integer, intent(out)::err_code 

Will be set to PMTM_SUCCESS if the call was successful and the appropriate [error code] if not.

Notes: See PMTM_init for details about file_name.

C:

:::C
    PMTM_error_t PMTM_create_instance(PMTM_instance_t * instance, const char * file_name, const char * application_name)

Related

Wiki: PMTM

MongoDB Logo MongoDB