Skip to content

Commit

Permalink
Merge pull request #524 from m-brath/disort-aagrid-checks
Browse files Browse the repository at this point in the history
Add aa_grid-size check to DisortCalc and DisortCalcWithARTSSurface
  • Loading branch information
olemke committed Sep 14, 2022
2 parents bc4f541 + 33a012d commit 56f3449
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/m_disort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ void DisortCalc(Workspace& ws,
" stars. \n"
"Disort can handle only one star.")

//Check for aa_grid
ARTS_USER_ERROR_IF(aa_grid.nelem() == 0,
"aa_grid has a size of 0.\n",
"aa_grid must have at least a size of one.")

//allocate Varibale for direct (star) source
Vector star_rte_los;
Vector star_pos(3);
Expand Down Expand Up @@ -304,6 +309,11 @@ void DisortCalcWithARTSSurface(Workspace& ws,
" stars. \n"
"Disort can handle only one star.")

//Check for aa_grid
ARTS_USER_ERROR_IF(aa_grid.nelem() == 0,
"aa_grid has a size of 0.\n",
"aa_grid must have at least a size of one.")

//allocate Varibale for direct (star) source
Vector star_rte_los;
Vector star_pos(3);
Expand Down

0 comments on commit 56f3449

Please sign in to comment.