User profile: lastchance

User info
User name:lastchance
Location:Manchester, England
Bio:University lecturer in engineering

Teaching: fluid dynamics, mechanics, CFD, numerical methods.

Research: computational fluid dynamics (CFD), renewable energy (marine and wind), aerodynamics, heat transfer, hydraulic engineering.

I have a first degree in Maths and a PhD in Mechanical Engineering. I do a lot of mathematical modelling in the physical sciences.

I program mainly in Fortran at work, but I enjoy improving my C++ in this forum.
Statistical data
Gender:Male
Occupation:Teacher
Skills:C++
Python
Fortran
MPI
History
Joined:
Number of posts:6855
Latest posts:

Is saying: compiling a program practically wrong?
"This is the type of arrant pedantry up with which I will not put." - Winston Churchill Someone lef...

Decompose Number with Prime Factor
@Duthomas, he's asking how to decompose to 1, not just to a prime number. You are one operation shor...

Error in copying element of one array to another in C++
You appear to have your rows and columns the wrong way round in one array. In your "output", n has ...

Decompose Number with Prime Factor
Try 27436 (opcount is 5; route is 274326 -> 1444 -> 76 -> 4 -> 2 -> 1; count the arrows) 5 seems to...

Question 1 about optimization
I would make sure that you didn't include the output (notoriously slow, and possibly buffered) withi...