virtual-labs-archive / computer-programming-responsive-iiith

This repository contains the responsive Computer Programming Lab IIITH
https://cse02-iiith.vlabs.ac.in
Other
1 stars 325 forks source link

Arrays_Simulation_2D_Arrays #476

Open MohsinMamoon opened 5 years ago

MohsinMamoon commented 5 years ago

Issue: Floating point matrix sizes are accepted and simulation starts. But due to the float sizes, some cells of the matrix remain unintialized which breaks the simulation at some point.

Steps to Reproduce:

  1. Go to http://cse02-iiith.vlabs.ac.in/exp4/simulation.html.
  2. Select 2-D Arrays.
  3. Enter Size : 1.1 x 1.1 for A and B
  4. Run The Simulation.

Expected Result: Error Message saying matrix size has to be a positive Integer.

Actual Result: The simulation starts with A and B matrices of size 2x2 each. But the 2nd row of both matrices is undefined and as soon as the code starts to evaluate, the simulation gets stuck.

Screenshot of point where it got stuck: Screenshot from 2019-03-16 18-17-06

MohsinMamoon commented 5 years ago

Fixed. Commit ID: 1b9a11d

DevikaBoddu commented 5 years ago

Valid fix: @MohsinMamoon