Commit c47680a6 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

change var name

parent de4597aa
...@@ -39,7 +39,7 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab ...@@ -39,7 +39,7 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
protected val defaultCoreMemory: Double = 1.0 protected val defaultCoreMemory: Double = 1.0
var vmemFactor: Double = config("vmem_factor", default = 1.5) var vmemFactor: Double = config("vmem_factor", default = 1.5)
var ressFactor: Double = config("ress_factor", default = 1.2) var residentFactor: Double = config("resident_factor", default = 1.2)
private var coreMemory: Double = _ private var coreMemory: Double = _
...@@ -69,7 +69,7 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab ...@@ -69,7 +69,7 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
else memoryLimit = Some(coreMemory * threads) else memoryLimit = Some(coreMemory * threads)
if (config.contains("resident_limit")) residentLimit = config("resident_limit") if (config.contains("resident_limit")) residentLimit = config("resident_limit")
else residentLimit = Some((coreMemory + (0.5 * retry)) * ressFactor) else residentLimit = Some((coreMemory + (0.5 * retry)) * residentFactor)
if (!config.contains("vmem")) vmem = Some((coreMemory * (vmemFactor + (0.5 * retry))) + "G") if (!config.contains("vmem")) vmem = Some((coreMemory * (vmemFactor + (0.5 * retry))) + "G")
if (vmem.isDefined) jobResourceRequests :+= "h_vmem=" + vmem.get if (vmem.isDefined) jobResourceRequests :+= "h_vmem=" + vmem.get
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment