convert_common_to_module
Replace legacy COMMON blocks with modern Fortran modules by extracting the block, generating a module, and commenting out the original COMMON statement.
Instructions
Extracts a legacy COMMON block and generates an encapsulated modern Fortran module. Comments out the legacy COMMON statement and inserts matching module imports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| block_name | Yes | ||
| module_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |