Recent Posts

In a previous post wrapping user-defined types in Fortran into C was explained using the opaque object hack. The hack was improved by adding portable size detection and direct access to array memory using pointer handles. For compilers that do not yet support STORAGE_SIZE intrinsic function an alternative route is suggested in this post. Again the approach is based on the one by Pletzer et. al., “Exposing Fortran derived types to C and other languages”, 2008 but modified and improved to increase portability and safety.

CONTINUE READING

Abstract Fortran C/C++/Python interoperability is an important consideration while designing scientific HPC codes. Fortran to a large extent still dominates in terms of lines of code in scientific software due to its legacy, reliable mathematical libraries and many years of research into the design of its compilers. Therefore it becomes mandatory to support an array of codes and libraries developed in mixed languages say Fortran, C and C++. It is counter productive to rewrite the codes and revalidate just for the sake of using a single monolithic language.

CONTINUE READING

Projects

Element-free solver and tools

Library and tools for element-free or meshless solvers

OpenFUSE library and tools

Framework for Unstructred Mesh Solvers: Mesh data-base, partitioner, and load balancer

compressibleFOAM solver

OpenFOAM based compressible flow solver using Riemann flux reconstruction