Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression of output arrays #122

Closed
HoWol76 opened this issue Sep 25, 2020 · 4 comments
Closed

Compression of output arrays #122

HoWol76 opened this issue Sep 25, 2020 · 4 comments

Comments

@HoWol76
Copy link
Contributor

HoWol76 commented Sep 25, 2020

Fortran also allows namelists to be of the form

&nml
arr(1:10) = 2*1, 4*2, 5, 3, 2*5
/

At the moment, f90nml seems to be able to read such a namelist, but not write it in this form. I have an issue where I have large arrays (several thousand values) where almost all values are identical. Being able to compress this data would make my namelists far more readable.

@marshallward
Copy link
Owner

I agree, this would be good to implement, perhaps with a control flag. This also falls under #24 to some extent since there ought to be more ability to shape output.

I'm not sure I have the bandwidth to work on this but will take it on board.

(Also nice to hear from you again, Holger!)

@HoWol76
Copy link
Contributor Author

HoWol76 commented Oct 1, 2020

Could you give me some pointers on where you would insert the code necessary to make this change? I could play around with it a bit and then maybe even implement it.

@HoWol76 HoWol76 mentioned this issue Oct 1, 2020
@HoWol76
Copy link
Contributor Author

HoWol76 commented Oct 1, 2020

I think I found it. Made a pull request.

@marshallward
Copy link
Owner

Addressed in #123

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

No branches or pull requests

2 participants