Skip to content

Fix getrusage memory conversion and use larger variable - #94

Merged
MiCurry merged 2 commits into
magnetotellurics:developfrom
MiCurry:fix-getrusage-conversion
Sep 24, 2026
Merged

MiCurry merged 2 commits into
magnetotellurics:developfrom
MiCurry:fix-getrusage-conversion

Conversation

@MiCurry

@MiCurry MiCurry commented Sep 24, 2026

Copy link
Copy Markdown
Member

This commit fixes the incorrect ModEM_getrusage conversion. It correctly converts KB to Bytes for Linux and other systems. Before, I was always manually changing values.

Furthermore, this improves ModEM_memory.f90 to use larger variable sizes so we avoid overflows.

It also removes task_id in ModEM_memory which was never set.

…d overflow

This commit fixes the incorrect ModEM_getrusage conversion. It correctly
converts KB to Bytes for Linux and other systems. Before, I was always manually
changing values.

Furthermore, this improves ModEM_memory.f90 to use larger variable sizes so we
avoid overflows.
@MiCurry
MiCurry merged commit 85cedce into magnetotellurics:develop Sep 24, 2026
1 check passed
@MiCurry
MiCurry deleted the fix-getrusage-conversion branch September 24, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant