Skip to content

Instantly share code, notes, and snippets.

View mpasha96's full-sized avatar
🚀
To the moon and beyond

Mukarram Pasha mpasha96

🚀
To the moon and beyond
View GitHub Profile
ri = 1.8
rf = 2.7
te = 0.00
def get_value(x):
return x**2-5*x+6
yi = get_value(ri)
yf = get_value(rf)
rm = (ri + rf)/2
@mpasha96
mpasha96 / sequentialLoaderJS
Created July 29, 2018 20:38
Function for loading JS files sequentially.
<script>
(function(){
//three JS files that need to be loaded one after the other
var libs = [
"assets/js/products.js",
"assets/js/sales.js",
// 'https://cdnjs.cloudflare.com/ajax/libs/underscore.string/3.3.4/underscore.string.js'
];
­
#include "mpi.h"
void main(int argc, char *argv[])
{
int nrow, mcol, root, Iam, ndim, p, rank;
int dims[2], coords[2], cyclic, reorder;
MPI_Comm comm, comm1, ceven, codd;
MPI_Group e_group, o_group;
MPI_Init(&argc, &argv); /* starts MPI */