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
project(fortran_value_test) | |
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | |
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | |
add_executable(${PROJECT_NAME} main.cpp) |
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
project (fortran_value) | |
enable_language (Fortran) | |
set (CMAKE_Fortran_FLAGS_RELEASE "-f77rtl -O3") | |
set (CMAKE_Fortran_FLAGS_DEBUG "-f77rtl") | |
add_compile_options(/MP) | |
add_compile_options(/extend_source:132) | |
add_compile_options($<$<CONFIG:Debug>:/libs:static>) |
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 "ParticleSystem.h" | |
#include <chrono> | |
ParticleSystem::ParticleSystem() : | |
m_maxParticles(50), | |
m_gForce(0,-0.0098f,0), | |
m_northTriangleNormal(0,0,0), | |
m_southTriangleNormal(0,0,0), | |
m_eastTriangleNormal(0,0,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
class Deck | |
{ | |
val deck : Seq[Card] | |
for(t <- Type.values) | |
{ | |
for(s <- Suit.values) | |
{ | |
deck ++ new Card(t, s) | |
} |
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 java.util.*; | |
public class Deck | |
{ | |
private ArrayList<Card> deck = new ArrayList<Card>(); | |
public Deck() | |
{ | |
for(Card.Suit s : Card.Suit.values()) | |
{ |
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 "Mass.h" | |
#include <glut.h> | |
Mass::Mass() : | |
m_color(1, 0, 0), | |
m_position(0, 0, 0), | |
m_size(1), | |
m_weight(0.5), | |
m_bb(m_position, m_size) |
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> | |
#include <glut.h> | |
#include <chrono> | |
#include <thread> | |
#include <ply/ply.h> |