This file contains 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
#include<stdio.h> | |
#include<Python.h> | |
#include<string> | |
#include<iostream> | |
int main(){ | |
PyObject *pName,*pModule, *pTmp, *pFunc; | |
char *sTmp; | |
int data; |
This file contains 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
#include <iostream> | |
#include <math.h> | |
#include <Eigen/Dense> | |
#include <petscts.h> | |
typedef struct { | |
// Vec solution; /* global exact solution vector */ | |
Eigen::MatrixXd soln,rhs; | |
const double y0 = 1.0e-3; // epsilon in original ODE | |
} AppCtx; |