Skip to content

TestProcess Process Documentation

Overview

Test process for generator

Author: Test Author Version: 1.0

Features

Available Schemes

  • TestScheme: Test scheme

Modern Architecture

  • Clean Interface: Follows CATChem ProcessInterface standards
  • Column Processing: Supports efficient column-based operations
  • Diagnostic Integration: Full diagnostic framework support
  • Error Handling: Comprehensive error management
  • Unit Testing: Complete test coverage

Usage

Basic Usage

use ProcessTestProcessCreator_Mod, only : create_testprocess_process
use ProcessInterface_Mod, only : ProcessInterface
use StateManager_Mod, only : StateManagerType

class(ProcessInterface), allocatable :: process
type(StateManagerType) :: container
integer :: rc

! Create process
call create_testprocess_process(process, rc)

! Initialize with container
call process%init(container, rc)

! Run the process
call process%run(container, rc)

! Finalize
call process%finalize(rc)

Configuration

The process can be configured using YAML configuration files:

processes:
  - name: testprocess
    active: true
    scheme: TestScheme
    diagnostics:
      enabled: true
      output_level: standard

Directory Structure

src/process/testprocess/
├── ProcessTestProcessInterface_Mod.F90  # Main process interface
├── ProcessTestProcessCreator_Mod.F90    # Process creator
├── CMakeLists.txt                              # Build configuration
└── schemes/
    ├── TestScheme_Mod.F90               # TestScheme scheme

Testing

Unit tests are provided in tests/process/testprocess/:

# Run all tests
ctest -R testprocess -V

# Run specific test
./test_testprocess_process

Implementation Details

Process Interface

The main process interface (ProcessTestProcessInterface_Mod.F90) provides: - State management - Scheme selection and configuration - Diagnostic registration - Error handling

Scheme Modules

Each scheme module provides pure science implementation: - TestScheme_Mod.F90: Test scheme

Generated Files

This process was generated using the CATChem Process Generator with the following files: - Process interface module - Process creator module - Scheme implementations - CMake build configuration - Unit tests - Documentation


This documentation was auto-generated by the CATChem Process Generator on 2025