This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*###################################################################### | |
Example 6 : MPI_Isend MPI_Irecv | |
Description: | |
Examples 5 and 6 demonstrate the difference between blocking | |
and non-blocking point-to-point communication. | |
Example 5: MPI_Send/MPI_Recv (blocking) | |
Example 6: MPI_Isend/MPI_Irecv (non-blocking) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% A website | |
@misc{exoplanetwebsite, | |
Author = {Jean Schneider}, | |
Title = {The Extrasolar Planets Encyclopaedia}, | |
howpublished = {\url{http://exoplanet.eu/catalog.php}} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* array_search1.c - array searching example where each process is looking for a specific | |
number and notifies the other processes when it finds it. Uses a non-blocking receive. | |
*/ | |
#include <mpi.h> | |
#include <stdio.h> | |
main(int argc, char* argv[]) { | |
int rank,size; | |
MPI_Status status; | |
MPI_Request request; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" VIM Configuration File | |
" Description: Optimized for C/C++ development, but useful also for other things. | |
" Author: Gerhard Gappmeier | |
" | |
" set UTF-8 encoding | |
set enc=utf-8 | |
set fenc=utf-8 | |
set termencoding=utf-8 | |
" disable vi compatibility (emulation of old bugs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Arc(object): | |
""" An arc in the graph """ | |
def __init__(self, origin=None, dest=None, varCost=None, fixCost=None, capac=None): | |
self.origin = origin | |
self.dest = dest | |
self.varCost = varCost | |
self.fixCost = fixCost | |
self.capac = capac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
fileName = sys.argv[1] | |
print "Reading file:", fileName | |
inFile = open(fileName, 'r') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string::size_type pos = str.find_last_not_of("\n \t"); | |
if(pos != string::npos) | |
str = str.substr(0, pos+1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::cout << std::setw(2) << setfill('0') << myNumber; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plot "c37.lp_MIPStart.log" using 1:5 with lines, "c37.lp_MIPStart.log" using 1:6 with lines |
OlderNewer