TASMANIAN icon indicating copy to clipboard operation
TASMANIAN copied to clipboard

Scale Correction in Fortran?

Open ckrausecon opened this issue 2 years ago • 3 comments

Dear Miroslav,

It seems to me that, unless in Python, there is no possibility for scale correction in Fortran's local refinement procedure. Is that true? And if yes, do you plan to include scale correction at some point in time?

(Sorry in case this question was already asked.)

Best Christopher

ckrausecon avatar May 16 '22 21:05 ckrausecon

Which version of Fortran are you using? Scale correction should work fine in the 2003 OOP interface.

The older 90/95 interface required a lot of manual work and it was too hard to maintain. Much of the functionality has not been ported and in more ways than not, the old interface is deprecated.

The new interface uses automatic generation for the bindings and it is much easier to maintain harder things like many default parameters passed into a function.

mkstoyanov avatar May 16 '22 21:05 mkstoyanov

Thank you for the fast reply! I am indeed using the Fortran 90/95 interface, which is working fine for my purposes. Only the scale correction is missing. But I totally understand your point. I guess I'll have to work myself into the 2003 Interface

ckrausecon avatar May 17 '22 09:05 ckrausecon

Swig is the way to go, the interface is much closer to C++/Python and thus easier to maintain and document, and the interface does not require SWIG being installed or enabled. In fact, if you build Tasmanian with Fortrain 90/95, then 2003 is already installed.

mkstoyanov avatar May 17 '22 14:05 mkstoyanov