Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
steventopper committed Mar 26, 2023
1 parent d6ebfb8 commit 6451bf6
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 96 deletions.
1 change: 0 additions & 1 deletion src/main/Atom.java
Expand Up @@ -95,7 +95,6 @@ public double calcTempEnergy(Atom atom, boolean isPairwise, HashMap<Pair<String,
double B;
double C;
double D;
double Q;
if (isPairwise){
Pair<String, String> key = new Pair<>(this.symbol, atom.symbol);
double[] value = pairwiseDbase.get(key);
Expand Down
4 changes: 2 additions & 2 deletions src/main/Main.java
Expand Up @@ -6,7 +6,7 @@
import java.math.BigDecimal;

public class Main {
private static MersenneTwister r = new MersenneTwister();
private static final MersenneTwister r = new MersenneTwister();
public static void main(String[] args) {
Space s = new Space(10);
long time1 = System.nanoTime();
Expand All @@ -29,7 +29,7 @@ public static void main(String[] args) {
s.makeDirectory();
long time2 = System.nanoTime();
String stamp = timestamp(time1, time2);
String str = s.write(0);
s.write(0);
String initText = "Initialization ";
if (!s.useInput){
initText += "and propagation ";
Expand Down
2 changes: 1 addition & 1 deletion src/main/Molecule.java
Expand Up @@ -15,7 +15,7 @@ public class Molecule {
double tempy;
double tempz;
double radius;
private static MersenneTwister r = new MersenneTwister();
private static final MersenneTwister r = new MersenneTwister();
ArrayList<Atom> atoms;
HashMap<String, Integer> atomSymbols = new HashMap<>(); //Used for pattern matching
public Molecule(String n, double rad, ArrayList<Atom> a){
Expand Down

0 comments on commit 6451bf6

Please sign in to comment.