nlesc-smcm / eSalsa-POP

Apache License 2.0
0 stars 2 forks source link

added amuse option for horizontal grid #3

Closed mchertova closed 3 years ago

mchertova commented 4 years ago

do not merge yet

ipelupessy commented 4 years ago

@benvanwerkhoven @mchertova currently the PR has a hard coded lat and lon range in horiz_grid_amuse. It is possible to change it so that it takes the ULON_G and ULAN_G as input (ie assuming its get set beforehand) then it could:

In the former case it makes sense to add parameters for the south-west and north-east corner coordinates or something and fill ULON_G and ULAT_G in the interface, while in the latter case ULON_G and ULAT_G could be exposed directly (to be set in the python layer)

what do you think?

mchertova commented 4 years ago

If we are talking only about changes of grid definition for the amuse case (which is currently used for benchmark) I would go for the first option. In the paper with the description of the benchmark they use simple cartesian grid as well.

ipelupessy commented 4 years ago

yea, I am also gravitating towards that..also because that is easiest to use (otherwise you depend on the user setting correct (non-trivial) ULON_G and ULAT_G grids)

benvanwerkhoven commented 4 years ago

It depends on what you want to do. I think the latter is more generic, and leaves room to do more in the Python interface and less inside the Fortran code. The interface could then generate the global latlons for the U grid based on some description by the user. On the other hand, if you don't need all of that right now, I think the first option is fine.

ipelupessy commented 4 years ago

this is superseded by PR #4 ?

ipelupessy commented 3 years ago

close because of #4