hatfullr / fluxcal

GNU General Public License v3.0
0 stars 0 forks source link

User Controlled Maximum Grid Sizes #6

Open hatfullr opened 5 years ago

hatfullr commented 5 years ago

We need to give the user control of the maximum grid sizes allowed in flux_cal. Some users may have situations where they need a very high resolution, or perhaps a very low resolution, and we wouldn't want to make them go into the code and edit a parameter value haphazardly.

hatfullr commented 5 years ago

This will require careful implementation of the "allocate" builtin function staged at the beginning of init.f.

hatfullr commented 3 years ago

This may be difficult to implement because allocatable arrays cannot be placed in common blocks. We would need to pass the required arrays to each subroutine that needs them. To do this, we would need to place each subroutine into a module, as per this Stackoverflow answer.

For now, I have added some user controls for the minimum and maximum resolution in the x and y directions for the driving grid.