Relative Content

Tag Archive for fortran

How can I explain object-oriented programming to someone who’s only coded in Fortran 77?

My mother did her college thesis in Fortran, and now (over a decade later) needs to learn c++ for fluids simulations. She is able to understand all of the procedural programming, but no matter how hard I try to explain objects to her, it doesn’t stick. (I do a lot of work with Java, so I know how objects work) I think I might be explaining it in too high-level ways, so it isn’t really making sense to someone who’s never worked with them at all and grew up in the age of purely procedural programming.

How can I combine C/Fortran with JavaScript?

I’m working on a project where I need heavy numerical calculations to be real-time visualized with something flexible like D3.js. Are there frameworks out there that would let me painlessly achieve this? Or do I need to use some sort of “glue” code written in, say, Python?

Fortran class select type with multiple arguments

I want to write a subroutine taking as argument two class objects which can be of any extended type from a common ancestor. Inside the subroutine I will have a type select to check the class. Since I know that the two objects will be of the same type, is it possible to avoid check the type of both? The following is a minimal example of what I would like to achieve (which at the moment is wrong):

using gprof -pg flag doesn’t generate gmon.out

I have a code that is a mix of Fortran, C and R. it’s a simulation code. The backend/solver is in Fortran and C and R is used as the wrapper for creating simulation workflow and launching the process.
I would like to do some profiling using gprof so what I did is I added the relevant flags to my makefiles. Here is the structure of directories: