Skip to content Skip to sidebar Skip to footer
Showing posts with the label Fortran

How To Obtain How Much Time Is Spent In F2py Wrappers

I am currently writing a time consuming python program and decided to rewrite part of the program i… Read more How To Obtain How Much Time Is Spent In F2py Wrappers

Setting The Fortran Compiler In F2py

I am trying to run the f2py example to create the compiled extension module¶: # import os # os.envi… Read more Setting The Fortran Compiler In F2py

Why Is My F2py Programs Slower Than Python Programs

I recently wrote a time consuming program with python and decided to rewrite the most time consumin… Read more Why Is My F2py Programs Slower Than Python Programs

Discontinuity In Results When Using Scipy.integrate.quad

I've discovered a strange behavior when using scipy.integrate.quad. This behavior also shows up… Read more Discontinuity In Results When Using Scipy.integrate.quad

Reading A File With Fortran Formatted Small Floats, Using Numpy

I am trying to read a data file written by a Fortran program, in which every once in a while there … Read more Reading A File With Fortran Formatted Small Floats, Using Numpy

Precision Discrepancy Between Fortran And Python (sin Function)

I see a discrepancy between python and Fortran when using the sinus function. Could anyone shed lig… Read more Precision Discrepancy Between Fortran And Python (sin Function)

What Is Numpy.ctypeslib.as_ctypes Exacty Doing

I have this Fortran code : module example use iso_c_binding implicit none contains … Read more What Is Numpy.ctypeslib.as_ctypes Exacty Doing

Call Fortran Function From Python With Ctypes

I am looking to use ctypes to call some old fortran libraries which were written by my boss a few y… Read more Call Fortran Function From Python With Ctypes