convert_common_to_module
Extracts legacy COMMON blocks and generates modern Fortran modules, automatically replacing the COMMON statement with matching module imports.
Instructions
Extracts a legacy COMMON block and generates an encapsulated modern Fortran module. Comments out the legacy COMMON statement and inserts matching module imports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"block_name": "<block_name>",
"module_name": "<module_name>"
},
"name": "convert_common_to_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| block_name | Yes | ||
| module_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |