From 9d961bb85fafba67008a1241eb467b7d800703ad Mon Sep 17 00:00:00 2001 From: JGonzalez Date: Wed, 10 Jul 2024 21:57:22 +0200 Subject: [PATCH] Removing weight from edges This parameter is no longer needed. Also removing the cumulative sum of weights from the injection. --- src/modules/mesh/moduleMesh.f90 | 2 -- src/modules/moduleInject.f90 | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/modules/mesh/moduleMesh.f90 b/src/modules/mesh/moduleMesh.f90 index af1cd36..a2eaa5f 100644 --- a/src/modules/mesh/moduleMesh.f90 +++ b/src/modules/mesh/moduleMesh.f90 @@ -76,8 +76,6 @@ MODULE moduleMesh CLASS(meshCell), POINTER:: eColl => NULL() !Normal vector REAL(8):: normal(1:3) - !Weight for random injection of particles - REAL(8):: weight = 1.D0 ! Surface of edge REAL(8):: surface = 0.D0 !Pointer to boundary type diff --git a/src/modules/moduleInject.f90 b/src/modules/moduleInject.f90 index 1d4e2e7..529b687 100644 --- a/src/modules/moduleInject.f90 +++ b/src/modules/moduleInject.f90 @@ -61,8 +61,6 @@ MODULE moduleInject CLASS(speciesGeneric), POINTER:: species !Species of injection INTEGER:: nEdges INTEGER, ALLOCATABLE:: edges(:) !Array with edges - REAL(8), ALLOCATABLE:: cumWeight(:) !Array of cummulative probability - REAL(8):: sumWeight REAL(8):: surface ! Total surface of injection TYPE(velDistCont):: v(1:3) !Velocity distribution function in each direction CONTAINS