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
ExternalProject_Add( | |
cgns_external | |
URL "https://github.com/CGNS/CGNS/archive/v3.3.1.zip" | |
URL_MD5 d5798e5904ac1029ae324d47fad08efe | |
SOURCE_DIR ${CMAKE_BINARY_DIR}/external/cgns/ | |
BINARY_DIR ${CMAKE_BINARY_DIR}/external/cgns-build/ | |
INSTALL_DIR ${EXTERNAL_INSTALL_DIR} | |
CMAKE_ARGS |
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 <Eigen/Dense> | |
int main(){ | |
Eigen::MatrixXd A(3,2); // 3x2 dynamically sized matrix | |
A << 0,1,2, | |
3,4,5; | |
std::cout << "A=\n" << A << "\n"; | |
// this one *copies* the values into a column vector |
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; |
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
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
import numpy as np | |
fig_size=(4.5,2.5) | |
params = {'backend': 'pgf', | |
'axes.labelsize': 12, | |
'text.fontsize': 12, | |
'legend.fontsize': 12, | |
'xtick.labelsize': 12, |
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
\documentclass[12pt]{article} | |
\usepackage{pgf} | |
\begin{document} | |
\begin{figure}[h] | |
\begin{center} | |
\input{testpgf.pgf} | |
\caption{A figure generated by PGF input.} | |
\end{center} | |
\end{figure} |