Hi there,
I am using C++ to write a code with MPI functions to solve an integral quadrature.
How do I write the function to be integrated (in C++) so that it reads the values from a .dat file?
Thanks

use c++ fstream class. google and you will find several tutorials.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.