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
{ | |
//フォントや色の設定 | |
"editor.fontSize": 16, | |
"terminal.integrated.fontSize": 14, | |
"editor.fontFamily": "Ricty Diminished", | |
//"Atom One Dark"で気に入らない部分を変更 | |
"editor.tokenColorCustomizations": { | |
//変数 | |
"variables": "#f8f8f8", | |
//if,for文など |
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
/*----------------------------------------------density filter*/ | |
void opt_filter_density(FEM *actfem, int iter) | |
{ | |
int i,j,ID; | |
double r,dis; | |
double H; | |
double SUM[10]; | |
ELEMENT *actele1,*actele2; |
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 <stdlib.h> | |
#include <math.h> | |
#ifdef _OPENMP | |
#include <omp.h> | |
#endif | |
#include "../headers/function_header.h" | |
extern struct _PROBLEM *problem; | |
extern struct _FLAGS *flags; |
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 <vector> | |
#include <iostream> | |
#include <amgcl/backend/builtin.hpp> | |
#include <amgcl/value_type/static_matrix.hpp> | |
#include <amgcl/adapter/crs_tuple.hpp> | |
#include <amgcl/adapter/block_matrix.hpp> | |
#include <amgcl/mpi/distributed_matrix.hpp> | |
#include <amgcl/mpi/make_solver.hpp> |
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 <vector> | |
#include <iostream> | |
#include <amgcl/backend/builtin.hpp> | |
#include <amgcl/value_type/static_matrix.hpp> | |
#include <amgcl/adapter/crs_tuple.hpp> | |
#include <amgcl/adapter/block_matrix.hpp> | |
#include <amgcl/mpi/distributed_matrix.hpp> | |
#include <amgcl/mpi/make_solver.hpp> |
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 <memory> | |
#include <string> | |
class MeshBase | |
{ | |
public: | |
virtual ~MeshBase() {} | |
virtual void setParameter() = 0; | |
// |
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 <random> | |
using namespace std; | |
int main() | |
{ | |
random_device rd; | |
default_random_engine eng(rd()); | |
uniform_int_distribution<int> distr(1, 2); |