Skip to content

Commit 8d68cca

Browse files
committed
refactor(solver): GDS in lib.rs for preparation to merge to main
1 parent 215d7ca commit 8d68cca

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

core/compiler/src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,14 +436,12 @@ mod tests {
436436

437437
assert!(cells.is_valid());
438438

439-
let GDunit = GdsUnits::new(0.001, 1e-9);
440-
441439
let work_dir =
442440
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("build/argon_sky130_inverter");
443441
cells
444442
.to_gds(
445443
GdsMap::from_lyp(SKY130_LYP).expect("failed to create GDS map"),
446-
GDunit,
444+
GdsUnits::new(1e-3, 1e-9),
447445
work_dir.join("layout.gds"),
448446
)
449447
.expect("Failed to write to GDS");
@@ -682,13 +680,11 @@ mod tests {
682680
);
683681
println!("{cells:#?}");
684682

685-
let GDunit = GdsUnits::new(0.001, 1e-9);
686-
687683
let work_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("build/argon_text");
688684
cells
689685
.to_gds(
690686
GdsMap::from_lyp(SKY130_LYP).expect("failed to create GDS map"),
691-
GDunit,
687+
GdsUnits::new(1e-3, 1e-9),
692688
work_dir.join("layout.gds"),
693689
)
694690
.expect("Failed to write to GDS");

core/compiler/src/solver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ mod tests {
436436
//big matrix
437437
#[test]
438438
fn big_num_stab_test() {
439-
//make a graph laplacian for grid, want to see if QR = A?
439+
//make a graph laplacian for grid, want to see if QR = A
440440
fn generate_bad_value() -> f64 {
441441
use rand::Rng;
442442
use rand::seq::SliceRandom;
@@ -450,7 +450,7 @@ mod tests {
450450
magnitude * sign * noise
451451
}
452452
let size = 25;
453-
//let mut a_coo: CooMatrix<f64> = CooMatrix::new(size * size, size * size);
453+
454454
use nalgebra::DMatrix;
455455
let mut a_dense = DMatrix::zeros(size * size, size * size);
456456
let mut triplets: Vec<(usize, usize, f64)> = Vec::new();

0 commit comments

Comments
 (0)