Coder Social home page Coder Social logo

nasa / trick Goto Github PK

View Code? Open in Web Editor NEW
699.0 64.0 212.0 90.99 MB

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.

License: Other

Makefile 2.12% Perl 3.16% Python 9.25% Shell 0.23% HTML 0.70% CSS 0.01% C++ 54.67% C 8.96% Java 17.42% Haskell 0.03% Batchfile 0.01% Lex 0.19% Yacc 0.24% D 0.04% M4 0.19% Roff 1.04% QMake 0.01% JavaScript 0.43% CMake 0.69% SWIG 0.59%

trick's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trick's Issues

Problem indexing an unconstrained array of constrained arrays.

Suppose that in some sim object "foo" you have an array:
double D3x3 [3][3];
and a pointer :
double (*pD3) [3];
and you point to the array like so:
pD3 = D3x3;

Although ref_attributes("foo.pD3[0]") will return the correct address,
ref_attributes("foo.pD3[1]") and ref_attributes("foo.pD3[2]") will not.

The problem is that Trick::MemoryManager::ref_dim() is not correctly calculating the sizes of the elements of an unconstrained array.

Cleanup and Clearly Document SIM_parachutist

The intent is create a model sim example.
Create a README file that clearly describes the simulation.
Also ensure that the code and the documentation are clear and consistent.

make install fails without er7_utils

I had no problems building Trick on Fedora 21 until I ran sudo make install. The makefile is looking for er7_utils. Recommend either include er7_utils, or remove the dependency from the makefile.

Isolate DMTCP code

There are ifdefs for DMTCP scattered throughout the code. Consolidate all of these into the DMTCP directory.

javac dependency not satisfied by installation instructions

I'm using Fedora 21. Java 1.8.0 OpenJDK is in the Fedora 21 repository, not 1.7.0. But either way, java-1.8.0-openjdk did not install the required javac executable. I had to install java-1.8.0-openjdk-devel. Recommend updating the wiki to include supported Linux distributions and versions and confirming that java-1.7.0-openjdk package installs javac or if it requires java-1.7.0-openjdk-devel as well.

Remove dependency on perl Digest::MD5.

Th Digest::MD5 module is not always installed by default on all systems. We only it use it to generate a unique file name. Using the file inode information will serve the same purpose.

/usr/lib64/llvm/clang/3.4.2 not found

make fails with:

cp -r /usr/lib64/llvm/clang/3.4.2 lib/clang
cp: cannot stat `/usr/lib64/llvm/clang/3.4.2': No such file or directory

Centos 6.6
clang/llvm 3.4.2

The source of the error is at:
trick_source/codegen/Interface_Code_Gen/makefile: cp -r $(CLANG_LIBDIR)/clang/$(LLVM_VERSION) lib/clang

Manually changing CLANG_LIBDIR from "/usr/lib64" to "/usr/lib" fixes the problem. The CentOS 6 yum repo puts both the 32 bit and 64 bit libraries at /usr/lib/clang/3.4.2.

Add Parachutist Simulation

This simulation models a parachutist jumping from from a very high altitude, similar to that of Austrian daredevil Felix Baumgartner on Oct 14, 2012.

Variable Server fails to establish listen port on restart under a specific circumstance.

The following conditions will generate a problem with the variable server restarting:
1.) User must specify a port via trick.var_server_set_port(<port_id>) in the input file
2.) Execute simulation and dump a checkpoint on machine A.
3.) ssh to machine B.
4.) Execute simulation and load the checkpoint.

Variable Server will fail with error:
ERROR: Could not establish listen port <port_id> for Variable Server. Aborting.

From this point on, any attempts to connect to the variable server will fail. however, already established connections seem to succeed.

Add Memory Manager STL unit tests

Using the ball sim, the sim should run for a bit and take a checkpoint. then continue for a bit, reload the checkpoint and continue to the end. The results should be the same at the end.

Monte Carlo data between dry run and data fed to run differ.

The dry run file is written in ascii where as the values coming out of the random number generators are fed into monte carlo runs as exact binary representation of double numbers. To get these to match, we can change everything to use ascii.

Checkpoints cannot handle overloaded names

If you have this

class A {
  public:
    int ii ;
} ;

class B : public A {
  public:
    int ii ;
} ;

Only B:ii will show up in the checkpoint and it will be duplicated. We need to support overloaded names.

Event messages not printing

Messages aren't being printed when an event fires. This worked in Trick 10. I do have the following in my input deck:

trick.set_event_info_msg_on()

make install incomplete

make install copies the binaries to the install directory, but trick_dp fails to file gte.pm and terminates. gte.pm is found in trick/bin/pm/gte.pm.

Centos 6.6

What is the preferred deployment method? Make install or set the path to the as built bin directory? If preferred deployment is make install, recommend adding additional steps to satisfy runtime binaries. If other method is preferred, recommend either updating the launch scripts or update installation instructions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.