From b8953f79a8317a0b2f325a8ed7d3175fb5b69e47 Mon Sep 17 00:00:00 2001 From: Karthik Chandrashekara Date: Wed, 20 Nov 2024 00:19:14 +0100 Subject: [PATCH] Cosmetic changes, tweaks to get solver to be pushed up the queue on the cluster. --- Dipolar-Gas-Simulator/+Scripts/run_locally.m | 11 +++++------ Dipolar-Gas-Simulator/+Scripts/run_on_cluster.m | 4 ++-- Dipolar-Gas-Simulator/bwhpc_matlab_gpe_sim_gpu.slurm | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Dipolar-Gas-Simulator/+Scripts/run_locally.m b/Dipolar-Gas-Simulator/+Scripts/run_locally.m index 033af36..cb1bdd3 100644 --- a/Dipolar-Gas-Simulator/+Scripts/run_locally.m +++ b/Dipolar-Gas-Simulator/+Scripts/run_locally.m @@ -109,13 +109,12 @@ solver.Potential = pot.trap(); %% - Plot initial wavefunction Plotter.visualizeWavefunction2D(psi,Params,Transf) %% - Plot GS wavefunction -Plotter.visualizeGSWavefunction2D(Params.njob) +Plotter.visualizeGSWavefunction2D(solver.SaveDirectory, solver.JobNumber) %% - -folder_path = './Data_TriangularPhase'; -run_index = 1; -Plotter.visualizeGSWavefunction2D(folder_path, run_index) -% analyzeRun2D(folder_path, run_index) +SaveDirectory = './Data_TriangularPhase'; +JobNumber = 1; +Plotter.visualizeGSWavefunction2D(SaveDirectory, JobNumber) +% analyzeRun2D(SaveDirectory, JobNumber) %% \ No newline at end of file diff --git a/Dipolar-Gas-Simulator/+Scripts/run_on_cluster.m b/Dipolar-Gas-Simulator/+Scripts/run_on_cluster.m index d5905a9..76c5ec8 100644 --- a/Dipolar-Gas-Simulator/+Scripts/run_on_cluster.m +++ b/Dipolar-Gas-Simulator/+Scripts/run_on_cluster.m @@ -80,7 +80,7 @@ OptionsStruct.WidthUpperBound = 20; OptionsStruct.WidthCutoff = 1e-2; OptionsStruct.PlotLive = false; -OptionsStruct.JobNumber = 1; +OptionsStruct.JobNumber = 2; OptionsStruct.RunOnGPU = true; OptionsStruct.SaveData = true; OptionsStruct.SaveDirectory = './Data_StripePhase'; @@ -122,7 +122,7 @@ OptionsStruct.WidthUpperBound = 20; OptionsStruct.WidthCutoff = 1e-2; OptionsStruct.PlotLive = false; -OptionsStruct.JobNumber = 1; +OptionsStruct.JobNumber = 3; OptionsStruct.RunOnGPU = true; OptionsStruct.SaveData = true; OptionsStruct.SaveDirectory = './Data_HoneycombPhase'; diff --git a/Dipolar-Gas-Simulator/bwhpc_matlab_gpe_sim_gpu.slurm b/Dipolar-Gas-Simulator/bwhpc_matlab_gpe_sim_gpu.slurm index 9eda034..c90f09b 100644 --- a/Dipolar-Gas-Simulator/bwhpc_matlab_gpe_sim_gpu.slurm +++ b/Dipolar-Gas-Simulator/bwhpc_matlab_gpe_sim_gpu.slurm @@ -5,10 +5,10 @@ # Request number of nodes and GPU for job #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 -#SBATCH --gres=gpu:A40:3 +#SBATCH --gres=gpu:A40:1 #SBATCH --mem=8G # Estimated wallclock time for job -#SBATCH --time=10:00:00 +#SBATCH --time=12:00:00 #SBATCH --job-name=simulation #SBATCH --error=simulation.err #SBATCH --output=simulation.out