diff --git a/Src/Files/FMpiFmaLoader.hpp b/Src/Files/FMpiFmaLoader.hpp
index 1ba553f2cce21c8b326e7ccb0f5c5c88b090aa7b..a5efc543f59304a742ffa4f48d3a65f238a43d56 100644
--- a/Src/Files/FMpiFmaLoader.hpp
+++ b/Src/Files/FMpiFmaLoader.hpp
@@ -95,7 +95,13 @@ public:
                 // local number to read
                 particles = new FReal[bufsize];
 
-                MPI_File_read_at(file, headDataOffSet + startPart * 4 * sizeof(FReal), particles, bufsize, MPI_FLOAT, &status);
+                if( sizeof(FReal) == sizeof(float) ){
+                    MPI_File_read_at(file, headDataOffSet + startPart * 4 * sizeof(FReal), particles, bufsize, MPI_FLOAT, &status);
+                }
+                else{
+                    MPI_File_read_at(file, headDataOffSet + startPart * 4 * sizeof(FReal), particles, bufsize, MPI_DOUBLE, &status);
+                }
+
 
                 // check if needed
                 int count(0);