User profile: lastchance

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

Teaching: fluid dynamics, mechanics, CFD, bit of maths and computing.

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

I have a Maths degree and 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++
Fortran
MPI
History
Joined:
Number of posts:2221
Latest posts:

Solving differential equations with Monte Carlo method
That can't be the whole of your problem. You won't be able to get a solution of a differential equat...

C++ Vector inserting elements at indices *before* previous indices are used
[quote]vector<int> vec(5) ... to preallocate the vector[/quote] Yes, that would be fine if you need...

C++ Vector inserting elements at indices *before* previous indices are used
Because at no stage in the first example did you declare the size of the array (so it will start ......

C++ Vector inserting elements at indices *before* previous indices are used
Try the following. Note the reported size. [code]#include <iostream> #include <vector> using names...

Defining A Range
Here's a few options, increasing in flexibility (and obscurity!): Note (edit): the programs below a...