# Executing atmloc.f routine

**URL:** <https://fluka-forum.web.cern.ch/t/executing-atmloc-f-routine/2112>\
**Category:** Advanced Features and User Routines\
**Created:** [2 August 2021 19:52 UTC](https://fluka-forum.web.cern.ch/t/executing-atmloc-f-routine/2112 "2021-08-02T19:52:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.bowers](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@james.bowers](https://fluka-forum.web.cern.ch/u/james.bowers)\
**Post date:** [2 August 2021 19:52 UTC](https://fluka-forum.web.cern.ch/t/executing-atmloc-f-routine/2112/1 "2021-08-02T19:52:58Z")

</div>

Hello FLUKA experts,

I am having trouble creating an executable for the atmloc.f routine to create a local atmosphere geometry for cosmic ray simulations. When I try to compile atmloc.f in /fluka/src/tools using command fff atmloc.f, I get the message ‘Fatal error: can’t create atmloc.o: Permission denied’. The same happens when I attempt to use the command ‘lfluka -o exeatmloc atmloc.f’ in the same directory.

I am not very experienced in compiling fortran files into FLUKA executables, so any insight into why I do not have permissions for atmloc.f or any further instruction in how to execute the routine would be much appreciated.

Thank you,  
James R. Bowers

---

<div class="post-metadata">

**Author:** ![ceruttif](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/ceruttif/32/23_2.png) [@ceruttif](https://fluka-forum.web.cern.ch/u/ceruttif)\
**Post date:** [2 August 2021 20:55 UTC](https://fluka-forum.web.cern.ch/t/executing-atmloc-f-routine/2112/2 "2021-08-02T20:55:37Z")

</div>

Hi James, it looks like you have no writing rights in /fluka/src/tools, which may be reserved to your system superuser. Either you get them as regular user from the latter or you copy atmloc.f to your own working directory and execute those commands there.

---

<div class="post-metadata">

**Author:** ![rversaci](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@rversaci](https://fluka-forum.web.cern.ch/u/rversaci)\
**Post date:** [4 August 2021 06:37 UTC](https://fluka-forum.web.cern.ch/t/executing-atmloc-f-routine/2112/3 "2021-08-04T06:37:16Z")

</div>

Split this topic on 4 August 2021 06:37 UTC

A post was split to a new topic: [Latitude implementation in cosmic rays simulations](https://fluka-forum.web.cern.ch/t/latitude-implementation-in-cosmic-rays-simulations/2121)

---

<div class="post-metadata">

**Author:** ![rversaci](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@rversaci](https://fluka-forum.web.cern.ch/u/rversaci)\
**Post date:** [4 August 2021 06:37 UTC](https://fluka-forum.web.cern.ch/t/executing-atmloc-f-routine/2112/4 "2021-08-04T06:37:34Z")

</div>

Closed on 4 August 2021 06:37 UTC


